Clone
1
run 2168 TEST commit e17ef9c
ci-bot edited this page 2025-08-12 17:52:45 +00:00

Test Report

View CI Run 2168 | Commit e17ef9c

🧪 Test Report

Generated on 2025-08-12 19:52:23 CEST

🧾 General Info

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

📋 Summary

  • Failed: 1
  • Total: 1
  • Collected: 1

🔎 Tests

Failed (1)
  • 📄 test_utils_sendmail.py

    Function: test_sendmail_local_delivery

    • Test 1

      📌 Setup phase

      duration:

      0.00037442194297909737
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      5.0816574287600815
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/tests/test_utils_sendmail.py
      lineno: 36
      message: AssertionError: No email was delivered to /root/Maildir/new
      assert []
      

      traceback:

      -   path: tests/test_utils_sendmail.py
        lineno: 36
        message: AssertionError
      

      longrepr:

      def test_sendmail_local_delivery():
      
              # Get the current system user (will be the local mailbox owner)
              user = getpass.getuser()
      
              # Define the recipient and email content
              to_addr = f"{user}@localhost"
              subject = "Local sendmail test"
              body = "Hello from pytest/local!"
      
              # Send the email using the function under test
              sendmail(to_addr, from_addr=f"{user}@localhost", subject=subject, body=body)
      
              # Path to the Maildir 'new' folder for this user
              maildir_new = os.path.expanduser("~/Maildir/new")
      
              # Wait a short time for delivery (Postfix is fast, but we ensure robustness)
              files = []
              for _ in range(50):  # Try for ~5 seconds
                  time.sleep(0.1)
                  files = sorted(glob.glob(os.path.join(maildir_new, "*")))
                  if files:
                      break
      
              # Assert that at least one mail file was delivered
      >       assert files, f"No email was delivered to {maildir_new}"
      E       AssertionError: No email was delivered to /root/Maildir/new
      E       assert []
      
      tests/test_utils_sendmail.py:36: AssertionError
      

      📌 Teardown phase

      duration:

      0.00040509412065148354
      

      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: 10
    

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