Clone
1
run 2136 TEST commit e1d4805
ci-bot edited this page 2025-08-12 13:21:10 +00:00

Test Report

View CI Run 2136 | Commit e1d4805

🧪 Test Report

Generated on 2025-08-12 15:20:48 CEST

🧾 General Info

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

📋 Summary

  • Passed: 4
  • Failed: 2
  • Total: 6
  • Collected: 6

🔎 Tests

Passed (4)
  • 📄 test_utils_elog.py

    Function: test_post_local

    • Test 1

      📌 Setup phase

      duration:

      0.0003871601074934006
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.014972964767366648
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00023664021864533424
      

      outcome:

      passed
      

    Function: test_get_default_elog_instance_with_direct_password_and_real_check

    • Test 2

      📌 Setup phase

      duration:

      0.00012622028589248657
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.008411957882344723
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001280750147998333
      

      outcome:

      passed
      

    Function: test_get_default_elog_instance_asks_password_and_opens

    • Test 3

      📌 Setup phase

      duration:

      0.00011629005894064903
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.008862938731908798
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012293271720409393
      

      outcome:

      passed
      

    Function: test_get_default_elog_with_path_home

    • Test 4

      📌 Setup phase

      duration:

      0.00011708680540323257
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.010329077020287514
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012397672981023788
      

      outcome:

      passed
      
Failed (2)
  • 📄 test_utils_elog.py

    Function: test_post

    • Test 5

      📌 Setup phase

      duration:

      0.00011560134589672089
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.01636482309550047
      

      outcome:

      failed
      

      crash:

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

      traceback:

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

      longrepr:

      def test_post():
              elog = get_test_elog()
      
              title = "AUTHOR_OVERRIDE_TEST"
              text = "This is a message"
              author = "robot"
      
              elog.post(text, attributes = {"Author": author})
      
              url = "http://localhost:8080/demo"
              response = requests.get(url)
              html_content = response.content.decode('utf-8')
      
      >       assert text in html, "Message not found"
      E       NameError: name 'html' is not defined
      
      tests/test_utils_elog.py:128: NameError
      

      📌 Teardown phase

      duration:

      0.00020242715254426003
      

      outcome:

      passed
      

    Function: test_screenshot

    • Test 6

      📌 Setup phase

      duration:

      0.00013163965195417404
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.01449726615101099
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_elog.py
      lineno: 146
      message: assert None is not None
      

      traceback:

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

      longrepr:

      mock_screenshot_class = <MagicMock name='Screenshot' id='140577814227792'>
      
          @patch("slic.utils.elog.Screenshot")
          def test_screenshot(mock_screenshot_class):
              with tempfile.NamedTemporaryFile(delete=False, suffix=".png") as tmp:
                  fake_path = tmp.name
                  tmp.write(b"fake image data")
      
              mock_instance = mock_screenshot_class.return_value
              mock_instance.shoot.return_value = [fake_path]
      
              elog = get_test_elog()
      
              test_msg = "SCREENSHOT_INTEGRATION_TEST_MSG_456"
              entry_id = elog.screenshot(message=test_msg)
      
      >       assert entry_id is not None
      E       assert None is not None
      
      tests/test_utils_elog.py:146: AssertionError
      

      📌 Teardown phase

      duration:

      0.00016125617548823357
      

      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_post_local
      type: Function
      lineno: 29
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_with_direct_password_and_real_check
      type: Function
      lineno: 52
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens
      type: Function
      lineno: 65
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home
      type: Function
      lineno: 83
    -   nodeid: tests/test_utils_elog.py::test_post
      type: Function
      lineno: 114
    -   nodeid: tests/test_utils_elog.py::test_screenshot
      type: Function
      lineno: 131
    

⚠️ 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