Clone
1
run 2402 TEST commit 78c3f82
ci-bot edited this page 2025-08-18 11:19:11 +00:00

Test Report

View CI Run 2402 | Commit 78c3f82

🧪 Test Report

Generated on 2025-08-18 13:18:44 CEST

🧾 General Info

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

📋 Summary

  • Failed: 5
  • Total: 5
  • Collected: 5

🔎 Tests

Failed (5)
  • 📄 test_utils_duo.py

    Function: TestPickledDictReal

    • Test 1

      📌 Setup phase

      duration:

      0.00035663554444909096
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0006017168052494526
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/picklio.py
      lineno: 10
      message: EOFError: Ran out of input
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 23
        message: None
      -   path: slic/utils/duo.py
        lineno: 36
        message: in set
      -   path: slic/utils/duo.py
        lineno: 42
        message: in _load
      -   path: slic/utils/picklio.py
        lineno: 10
        message: EOFError
      

      longrepr:

      self = <test_utils_duo.TestPickledDictReal object at 0x7f988ff0abb0>
      
          def test_set_get(self):
              # Crée un fichier temporaire qui sera automatiquement supprimé
              with NamedTemporaryFile(delete=False) as tmp_file:
                  tmp_path = tmp_file.name
      
              try:
                  # 1. Test avec fichier vide au départ
                  pd = PickledDict(tmp_path)
      
                  # 2. Premier set() - doit créer le fichier
      >           pd.set("test_key", "test_value")
      
      tests/test_utils_duo.py:23: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      slic/utils/duo.py:36: in set
          d = self._load()
      slic/utils/duo.py:42: in _load
          return unpickle(self.fname)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      fn = '/tmp/tmp9xinh498'
      
          def unpickle(fn):
              with open(fn, "rb") as f:
      >           return pkl.load(f)
      E           EOFError: Ran out of input
      
      slic/utils/picklio.py:10: EOFError
      

      📌 Teardown phase

      duration:

      0.00029515475034713745
      

      outcome:

      passed
      
    • Test 2

      📌 Setup phase

      duration:

      0.0001463419757783413
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.00040117325261235237
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/picklio.py
      lineno: 10
      message: EOFError: Ran out of input
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 59
        message: None
      -   path: slic/utils/duo.py
        lineno: 42
        message: in _load
      -   path: slic/utils/picklio.py
        lineno: 10
        message: EOFError
      

      longrepr:

      self = <test_utils_duo.TestPickledDictReal object at 0x7f988ff2c850>
      
          def test_load(self):
              """Test complet du workflow avec vérification de _load()"""
              with NamedTemporaryFile(delete=False) as tmp_file:
                  tmp_path = tmp_file.name
      
              try:
                  pd = PickledDict(tmp_path)
      
                  # Vérifie que _load() retourne bien un dict vide au début
      >           assert pd._load() == {}
      
      tests/test_utils_duo.py:59: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      slic/utils/duo.py:42: in _load
          return unpickle(self.fname)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      fn = '/tmp/tmpsqshdk1g'
      
          def unpickle(fn):
              with open(fn, "rb") as f:
      >           return pkl.load(f)
      E           EOFError: Ran out of input
      
      slic/utils/picklio.py:10: EOFError
      

      📌 Teardown phase

      duration:

      0.0001643020659685135
      

      outcome:

      passed
      

    Function: TestSecrets

    • Test 3

      📌 Setup phase

      duration:

      0.0014080209657549858
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0005535590462386608
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/logcfg.py
      lineno: 60
      message: ModuleNotFoundError: No module named 'mon_module'
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 97
        message: None
      -   path: .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py
        lineno: 102
        message: in derive_importpath
      -   path: .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py
        lineno: 65
        message: in resolve
      -   path: slic/utils/logcfg.py
        lineno: 60
        message: ModuleNotFoundError
      

      longrepr:

      self = <test_utils_duo.TestSecrets object at 0x7f988fbbd910>
      secrets_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_default_filename0/.dir')
      monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f987366aaf0>
      
          def test_default_filename(self, secrets_dir, monkeypatch):
              """Test que le fichier par défaut 'secrets' est bien utilisé"""
              # 1. On mock DotDir pour utiliser notre répertoire temporaire
      >       monkeypatch.setattr("mon_module.DotDir", lambda: lambda _: str(secrets_dir / "secrets"))
      
      tests/test_utils_duo.py:97: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py:102: in derive_importpath
          target = resolve(module)
      .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py:65: in resolve
          found: object = __import__(used)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      args = ('mon_module',), kwargs = {}, caught_warnings = []
      
          def import_with_log(*args, **kwargs):
              # catch warnings in order to re-emit them with corrected stacklevel
              with warnings.catch_warnings(record=True) as caught_warnings:
      >           module = orig_import(*args, **kwargs)
      E           ModuleNotFoundError: No module named 'mon_module'
      
      slic/utils/logcfg.py:60: ModuleNotFoundError
      

      📌 Teardown phase

      duration:

      0.00028236815705895424
      

      outcome:

      passed
      
    • Test 4

      📌 Setup phase

      duration:

      0.0007357709109783173
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0005211126990616322
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/logcfg.py
      lineno: 60
      message: ModuleNotFoundError: No module named 'mon_module'
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 115
        message: None
      -   path: .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py
        lineno: 102
        message: in derive_importpath
      -   path: .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py
        lineno: 65
        message: in resolve
      -   path: slic/utils/logcfg.py
        lineno: 60
        message: ModuleNotFoundError
      

      longrepr:

      self = <test_utils_duo.TestSecrets object at 0x7f988fbcba60>
      secrets_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_secret_workflow0/.dir')
      monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f989014d340>
      
          def test_secret_workflow(self, secrets_dir, monkeypatch):
              """Test complet du workflow avec le nom par défaut"""
      >       monkeypatch.setattr("mon_module.DotDir", lambda: lambda _: str(secrets_dir / "secrets"))
      
      tests/test_utils_duo.py:115: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py:102: in derive_importpath
          target = resolve(module)
      .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py:65: in resolve
          found: object = __import__(used)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      args = ('mon_module',), kwargs = {}, caught_warnings = []
      
          def import_with_log(*args, **kwargs):
              # catch warnings in order to re-emit them with corrected stacklevel
              with warnings.catch_warnings(record=True) as caught_warnings:
      >           module = orig_import(*args, **kwargs)
      E           ModuleNotFoundError: No module named 'mon_module'
      
      slic/utils/logcfg.py:60: ModuleNotFoundError
      

      📌 Teardown phase

      duration:

      0.00029161572456359863
      

      outcome:

      passed
      
    • Test 5

      📌 Setup phase

      duration:

      0.0010267277248203754
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0005737016908824444
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/slic/utils/logcfg.py
      lineno: 60
      message: ModuleNotFoundError: No module named 'mon_module'
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 141
        message: None
      -   path: .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py
        lineno: 102
        message: in derive_importpath
      -   path: .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py
        lineno: 65
        message: in resolve
      -   path: slic/utils/logcfg.py
        lineno: 60
        message: ModuleNotFoundError
      

      longrepr:

      self = <test_utils_duo.TestSecrets object at 0x7f988fbcb8b0>
      secrets_dir = PosixPath('/tmp/pytest-of-root/pytest-0/test_keyboard_interrupt0/.dir')
      monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f98901505b0>
      capsys = <_pytest.capture.CaptureFixture object at 0x7f9890150760>
      
          def test_keyboard_interrupt(self, secrets_dir, monkeypatch, capsys):
              """Test l'annulation avec Ctrl+C"""
      >       monkeypatch.setattr("mon_module.DotDir", lambda: lambda _: str(secrets_dir / "secrets"))
      
      tests/test_utils_duo.py:141: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py:102: in derive_importpath
          target = resolve(module)
      .pixi/envs/default/lib/python3.8/site-packages/_pytest/monkeypatch.py:65: in resolve
          found: object = __import__(used)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      args = ('mon_module',), kwargs = {}, caught_warnings = []
      
          def import_with_log(*args, **kwargs):
              # catch warnings in order to re-emit them with corrected stacklevel
              with warnings.catch_warnings(record=True) as caught_warnings:
      >           module = orig_import(*args, **kwargs)
      E           ModuleNotFoundError: No module named 'mon_module'
      
      slic/utils/logcfg.py:60: ModuleNotFoundError
      

      📌 Teardown phase

      duration:

      0.00043173739686608315
      

      outcome:

      passed
      

📚 Collected files

(1 tests)
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_duo.py
      type: Module
    
tests (3 tests)
  • tests/test_utils_duo.py
    • Outcome: passed
    • result:
    -   nodeid: tests/test_utils_duo.py::TestPickledDictReal
      type: Class
    -   nodeid: tests/test_utils_duo.py::TestSecrets
      type: Class
    
    • tests/test_utils_duo.py::TestPickledDictReal
      • Outcome: passed
      • result:
      -   nodeid: tests/test_utils_duo.py::TestPickledDictReal::test_set_get
        type: Function
        lineno: 12
      -   nodeid: tests/test_utils_duo.py::TestPickledDictReal::test_load
        type: Function
        lineno: 49
      
    • tests/test_utils_duo.py::TestSecrets
      • Outcome: passed
      • result:
      -   nodeid: tests/test_utils_duo.py::TestSecrets::test_default_filename
        type: Function
        lineno: 93
      -   nodeid: tests/test_utils_duo.py::TestSecrets::test_secret_workflow
        type: Function
        lineno: 112
      -   nodeid: tests/test_utils_duo.py::TestSecrets::test_keyboard_interrupt
        type: Function
        lineno: 138
      

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