Clone
1
run 2148 TEST commit a187e01
ci-bot edited this page 2025-08-12 14:19:29 +00:00

Test Report

View CI Run 2148 | Commit a187e01

🧪 Test Report

Generated on 2025-08-12 16:19:04 CEST

🧾 General Info

  • duration: 4.879276990890503
  • 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.00034978101029992104
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.010099360719323158
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00022234860807657242
      

      outcome:

      passed
      

    Function: test_get_default_elog_instance_asks_password_and_opens

    • Test 2

      📌 Setup phase

      duration:

      0.00012734206393361092
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.01403050310909748
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00012958794832229614
      

      outcome:

      passed
      

    Function: test_get_default_elog_with_path_home

    • Test 3

      📌 Setup phase

      duration:

      0.00012151384726166725
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.009037856012582779
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00013069575652480125
      

      outcome:

      passed
      

    Function: test_post

    • Test 4

      📌 Setup phase

      duration:

      0.00014283694326877594
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.03896424500271678
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.00016477378085255623
      

      outcome:

      passed
      
Failed (1)
  • 📄 test_utils_elog.py

    Function: test_screenshot

    • Test 5

      📌 Setup phase

      duration:

      0.00012602005153894424
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.03891683602705598
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_elog.py
      lineno: 142
      message: AssertionError: Attachment 'tmpvpqdynl_.png' not found in post HTML
      assert 'tmpvpqdynl_.png' in '\n\n\nELOG demo\n\n\n\n\n\n\n\n\n\ndemo\n\n\n\xa0\xa0demo, Page 1 of 1\xa0\n\n\n\n\xa0New\xa0|\n\xa0Find\xa0|\n\xa0Se...02\xa0\xa0\n\nTue Aug 12 14:19:01 2025\nrobot\xa0\xa0\xa0SCREENSHOT_INTEGRATION_TEST_MSG_456\n\n\n\nELOG V2.7.1-2004\n'
      

      traceback:

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

      longrepr:

      mock_screenshot_class = <MagicMock name='Screenshot' id='139684105258608'>
      
          @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"
              elog.screenshot(message=test_msg)
      
              url = "http://localhost:8080/demo"
              response = requests.get(url)
      
              soup = BeautifulSoup(response.content, 'html.parser')
              content = soup.get_text()
      
              print("Texte brut :", content)
      
              filename = os.path.basename(fake_path)
      
              assert test_msg in content, "Message not found"
      >       assert filename in content, f"Attachment '{filename}' not found in post HTML"
      E       AssertionError: Attachment 'tmpvpqdynl_.png' not found in post HTML
      E       assert 'tmpvpqdynl_.png' in '\n\n\nELOG demo\n\n\n\n\n\n\n\n\n\ndemo\n\n\n\xa0\xa0demo, Page 1 of 1\xa0\n\n\n\n\xa0New\xa0|\n\xa0Find\xa0|\n\xa0Se...02\xa0\xa0\n\nTue Aug 12 14:19:01 2025\nrobot\xa0\xa0\xa0SCREENSHOT_INTEGRATION_TEST_MSG_456\n\n\n\nELOG V2.7.1-2004\n'
      
      tests/test_utils_elog.py:142: AssertionError
      

      📌 Teardown phase

      duration:

      0.00020339293405413628
      

      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: 33
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_instance_asks_password_and_opens
      type: Function
      lineno: 46
    -   nodeid: tests/test_utils_elog.py::test_get_default_elog_with_path_home
      type: Function
      lineno: 64
    -   nodeid: tests/test_utils_elog.py::test_post
      type: Function
      lineno: 95
    -   nodeid: tests/test_utils_elog.py::test_screenshot
      type: Function
      lineno: 116
    

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