Clone
1
run 2300 TEST commit dcd555d
ci-bot edited this page 2025-08-15 14:35:47 +00:00

Test Report

View CI Run 2300 | Commit dcd555d

🧪 Test Report

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

🧾 General Info

  • duration: 5.820757865905762
  • 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.00040274299681186676
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.028056988958269358
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0003647678531706333
      

      outcome:

      passed
      

    Function: test_get_default_elog_instance_with_wrong_password_and_real_check

    • Test 2

      📌 Setup phase

      duration:

      0.00015607383102178574
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.007034820970147848
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001819501630961895
      

      outcome:

      passed
      

    Function: test_get_default_elog_instance_asks_password_and_opens

    • Test 3

      📌 Setup phase

      duration:

      0.00014816690236330032
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.020676088985055685
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00022316491231322289
      

      outcome:

      passed
      

    Function: test_get_default_elog_with_path_home

    • Test 4

      📌 Setup phase

      duration:

      0.00015623308718204498
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.02211932698264718
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0002025519497692585
      

      outcome:

      passed
      
Failed (1)
  • 📄 test_utils_elog.py

    Function: test_screenshot

    • Test 5

      📌 Setup phase

      duration:

      0.0002111019566655159
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.030790230259299278
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_elog.py
      lineno: 123
      message: AssertionError: assert 'fake_screenshot.png' in ['250815_143520_fake_screenshot.png']
      

      traceback:

      -   path: tests/test_utils_elog.py
        lineno: 123
        message: AssertionError
      

      longrepr:

      mock_screenshot_class = <MagicMock name='Screenshot' id='139951369368336'>
      
          @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 test_msg in message
      >       assert filename in [os.path.basename(a) for a in attachments]
      E       AssertionError: assert 'fake_screenshot.png' in ['250815_143520_fake_screenshot.png']
      
      tests/test_utils_elog.py:123: AssertionError
      

      📌 Teardown phase

      duration:

      0.00028186989948153496
      

      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