Clone
1
run 2172 TEST commit c1565bb
ci-bot edited this page 2025-08-12 19:41:14 +00:00

Test Report

View CI Run 2172 | Commit c1565bb

🧪 Test Report

Generated on 2025-08-12 21:40:52 CEST

🧾 General Info

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

📋 Summary

  • Passed: 1
  • Failed: 1
  • Total: 2
  • Collected: 2

🔎 Tests

Passed (1)
  • 📄 test_utils_sendmail.py

    Function: test_sendmail_local_delivery

    • Test 1

      📌 Setup phase

      duration:

      0.000515372958034277
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.13159762602299452
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0004321569576859474
      

      outcome:

      passed
      
Failed (1)
  • 📄 test_utils_sendmail.py

    Function: test_sendmail_raises_on_sendmail_failure

    • Test 2

      📌 Setup phase

      duration:

      0.0006294888444244862
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00032451003789901733
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_sendmail.py
      lineno: 72
      message: NameError: name 'pytest' is not defined
      

      traceback:

      -   path: tests/test_utils_sendmail.py
        lineno: 72
        message: NameError
      

      longrepr:

      monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fc9a0493f70>
      
          def test_sendmail_raises_on_sendmail_failure(monkeypatch):
              # Fake CompletedProcess-like object with a failing return code
              class FakeResult:
                  def __init__(self):
                      self.returncode = 75  # any non-zero is fine
                      self.stderr = b"User unknown or local delivery failed"
      
                  def check_returncode(self):
                      import subprocess
                      raise subprocess.CalledProcessError(self.returncode, "sendmail", stderr=self.stderr)
      
              # Monkeypatch subprocess.run so no real sendmail is called
              import subprocess
              monkeypatch.setattr(subprocess, "run", lambda *a, **kw: FakeResult())
      
              # Trigger the failure path
              to_addr = "nonexistent@localhost"
              subject = "Should fail"
              body = "This is supposed to fail"
      
      >       with pytest.raises(SendMailError) as excinfo:
      E       NameError: name 'pytest' is not defined
      
      tests/test_utils_sendmail.py:72: NameError
      

      📌 Teardown phase

      duration:

      0.00031367596238851547
      

      outcome:

      passed
      

📚 Collected files

(1 tests)
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_sendmail.py
      type: Module
    
tests (1 tests)
  • tests/test_utils_sendmail.py
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_sendmail.py::test_sendmail_local_delivery
      type: Function
      lineno: 12
    -   nodeid: tests/test_utils_sendmail.py::test_sendmail_raises_on_sendmail_failure
      type: Function
      lineno: 51
    

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