Clone
1
run 2299 TEST commit 9e354cd
ci-bot edited this page 2025-08-15 14:33:00 +00:00

Test Report

View CI Run 2299 | Commit 9e354cd

🧪 Test Report

Generated on 2025-08-15 16:32:35 CEST

🧾 General Info

  • duration: 5.673459053039551
  • root: /workspace/tligui_y/slic
  • environment: {}

📋 Summary

  • Passed: 4
  • Failed: 1
  • Total: 5
  • Collected: 5

🔎 Tests

Passed (4)
  • 📄 test_utils_elog.py

    Function: test_get_default_elog_instance_with_direct_password_and_real_check

    • Test 1

      📌 Setup phase

      duration:

      0.00042291032150387764
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.02599086007103324
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0003422093577682972
      

      outcome:

      passed
      

    Function: test_get_default_elog_instance_with_wrong_password_and_real_check

    • Test 2

      📌 Setup phase

      duration:

      0.00013741571456193924
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.006374171935021877
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00015123188495635986
      

      outcome:

      passed
      

    Function: test_get_default_elog_instance_asks_password_and_opens

    • Test 3

      📌 Setup phase

      duration:

      0.00013225385919213295
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.01753635983914137
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.000177077017724514
      

      outcome:

      passed
      

    Function: test_get_default_elog_with_path_home

    • Test 4

      📌 Setup phase

      duration:

      0.00013841688632965088
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.013864538166671991
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00017521483823657036
      

      outcome:

      passed
      
Failed (1)
  • 📄 test_utils_elog.py

    Function: test_screenshot

    • Test 5

      📌 Setup phase

      duration:

      0.00013294490054249763
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0374648361466825
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_elog.py
      lineno: 122
      message: NameError: name 'text' is not defined
      

      traceback:

      -   path: tests/test_utils_elog.py
        lineno: 122
        message: NameError
      

      longrepr:

      mock_screenshot_class = <MagicMock name='Screenshot' id='140657761445296'>
      
          @patch("slic.utils.elog.Screenshot")
          def test_screenshot(mock_screenshot_class):
              fake_path = "/tmp/fake_screenshot.png"
              with open(fake_path, "wb") as f:
                  f.write(b"fake image data")
      
              mock_instance = mock_screenshot_class.return_value
              mock_instance.shoot.return_value = [fake_path]
      
              elog = elog = Elog("http://localhost:8080/demo", user="robot", password="testpassword")
      
              test_msg = "SCREENSHOT_INTEGRATION_TEST_MSG_456"
              msg_id = elog.screenshot(message=test_msg)
      
              filename = os.path.basename(fake_path)
              message, attributes, attachments = elog.read(msg_id)
      
      >       assert text in message
      E       NameError: name 'text' is not defined
      
      tests/test_utils_elog.py:122: NameError
      

      📌 Teardown phase

      duration:

      0.0002661370672285557
      

      outcome:

      passed
      

📚 Collected files

(1 tests)
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_elog.py
      type: Module
    
tests (1 tests)
  • tests/test_utils_elog.py
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_direct_password_and_real_check
      type: Function
      lineno: 13
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_wrong_password_and_real_check
      type: Function
      lineno: 32
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens
      type: Function
      lineno: 43
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home
      type: Function
      lineno: 70
    -   nodeid: tests/test_utils_elog.py::test_screenshot
      type: Function
      lineno: 104
    

⚠️ Warnings

Warnings nº1
message: invalid escape sequence \-
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/bsread/h5.py
lineno: 207
Warnings nº2
message: The module numpy.dual is deprecated.  Instead of using dual, use the functions directly from numpy or scipy.
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/scipy/fft/__init__.py
lineno: 97