Clone
1
run 2405 TEST commit 7dfeacb
ci-bot edited this page 2025-08-18 11:57:11 +00:00

Test Report

View CI Run 2405 | Commit 7dfeacb

🧪 Test Report

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

🧾 General Info

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

📋 Summary

  • Passed: 2
  • Failed: 3
  • Total: 5
  • Collected: 5

🔎 Tests

Passed (2)
  • 📄 test_utils_duo.py

    Function: TestPickledDictReal

    • Test 1

      📌 Setup phase

      duration:

      0.0003815167583525181
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.005386887118220329
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.000256967730820179
      

      outcome:

      passed
      
    • Test 2

      📌 Setup phase

      duration:

      0.00013693282380700111
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0017951149493455887
      

      outcome:

      passed
      

      📌 Teardown phase

      duration:

      0.0001523946411907673
      

      outcome:

      passed
      
Failed (3)
  • 📄 test_utils_duo.py

    Function: TestSecrets

    • Test 3

      📌 Setup phase

      duration:

      0.0007468000985682011
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.006734747905284166
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/getpass.py
      lineno: 148
      message: EOFError
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 94
        message: None
      -   path: slic/utils/duo.py
        lineno: 14
        message: in set
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 91
        message: in unix_getpass
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 126
        message: in fallback_getpass
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 148
        message: EOFError
      

      longrepr:

      prompt = 'Please enter the secret "api_key": '
      stream = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
      
          def unix_getpass(prompt='Password: ', stream=None):
              """Prompt for a password, with echo turned off.
      
              Args:
                prompt: Written on stream to ask for the input.  Default: 'Password: '
                stream: A writable file object to display the prompt.  Defaults to
                        the tty.  If no tty is available defaults to sys.stderr.
              Returns:
                The seKr3t input.
              Raises:
                EOFError: If our input tty or stdin was closed.
                GetPassWarning: When we were unable to turn echo off on the input.
      
              Always restores terminal settings before returning.
              """
              passwd = None
              with contextlib.ExitStack() as stack:
                  try:
                      # Always try reading and writing directly on the tty first.
                      fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)
                      tty = io.FileIO(fd, 'w+')
                      stack.enter_context(tty)
                      input = io.TextIOWrapper(tty)
                      stack.enter_context(input)
                      if not stream:
                          stream = input
                  except OSError as e:
                      # If that fails, see if stdin can be controlled.
                      stack.close()
                      try:
                          fd = sys.stdin.fileno()
                      except (AttributeError, ValueError):
                          fd = None
                          passwd = fallback_getpass(prompt, stream)
                      input = sys.stdin
                      if not stream:
                          stream = sys.stderr
      
                  if fd is not None:
                      try:
      >                   old = termios.tcgetattr(fd)     # a copy to save
      E                   termios.error: (25, 'Inappropriate ioctl for device')
      
      .pixi/envs/default/lib/python3.8/getpass.py:69: error
      
      During handling of the above exception, another exception occurred:
      
      self = <test_utils_duo.TestSecrets object at 0x7fb8d3341580>
      mock_getpass = <MagicMock name='getpass' id='140431794118512'>
      setup_env = PosixPath('/tmp/tmp48azn3n4')
      
          @patch('getpass.getpass')
          def test_default_filename(self, mock_getpass, setup_env):
              mock_getpass.return_value = "secret123"
      
              secrets = Secrets()
      >       secrets.set("api_key")
      
      tests/test_utils_duo.py:94: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      slic/utils/duo.py:14: in set
          secret = getpass(prompt=f"Please enter the secret \"{name}\": ")
      .pixi/envs/default/lib/python3.8/getpass.py:91: in unix_getpass
          passwd = fallback_getpass(prompt, stream)
      .pixi/envs/default/lib/python3.8/getpass.py:126: in fallback_getpass
          return _raw_input(prompt, stream)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      prompt = 'Please enter the secret "api_key": '
      stream = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
      input = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>
      
          def _raw_input(prompt="", stream=None, input=None):
              # This doesn't save the string in the GNU readline history.
              if not stream:
                  stream = sys.stderr
              if not input:
                  input = sys.stdin
              prompt = str(prompt)
              if prompt:
                  try:
                      stream.write(prompt)
                  except UnicodeEncodeError:
                      # Use replace error handler to get as much as possible printed.
                      prompt = prompt.encode(stream.encoding, 'replace')
                      prompt = prompt.decode(stream.encoding)
                      stream.write(prompt)
                  stream.flush()
              # NOTE: The Python C API calls flockfile() (and unlock) during readline.
              line = input.readline()
              if not line:
      >           raise EOFError
      E           EOFError
      
      .pixi/envs/default/lib/python3.8/getpass.py:148: EOFError
      

      📌 Teardown phase

      duration:

      0.0017382069490849972
      

      outcome:

      passed
      
    • Test 4

      📌 Setup phase

      duration:

      0.0007901252247393131
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.0008317157626152039
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/getpass.py
      lineno: 148
      message: EOFError
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 108
        message: None
      -   path: slic/utils/duo.py
        lineno: 14
        message: in set
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 91
        message: in unix_getpass
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 126
        message: in fallback_getpass
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 148
        message: EOFError
      

      longrepr:

      prompt = 'Please enter the secret "user": '
      stream = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
      
          def unix_getpass(prompt='Password: ', stream=None):
              """Prompt for a password, with echo turned off.
      
              Args:
                prompt: Written on stream to ask for the input.  Default: 'Password: '
                stream: A writable file object to display the prompt.  Defaults to
                        the tty.  If no tty is available defaults to sys.stderr.
              Returns:
                The seKr3t input.
              Raises:
                EOFError: If our input tty or stdin was closed.
                GetPassWarning: When we were unable to turn echo off on the input.
      
              Always restores terminal settings before returning.
              """
              passwd = None
              with contextlib.ExitStack() as stack:
                  try:
                      # Always try reading and writing directly on the tty first.
                      fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)
                      tty = io.FileIO(fd, 'w+')
                      stack.enter_context(tty)
                      input = io.TextIOWrapper(tty)
                      stack.enter_context(input)
                      if not stream:
                          stream = input
                  except OSError as e:
                      # If that fails, see if stdin can be controlled.
                      stack.close()
                      try:
                          fd = sys.stdin.fileno()
                      except (AttributeError, ValueError):
                          fd = None
                          passwd = fallback_getpass(prompt, stream)
                      input = sys.stdin
                      if not stream:
                          stream = sys.stderr
      
                  if fd is not None:
                      try:
      >                   old = termios.tcgetattr(fd)     # a copy to save
      E                   termios.error: (25, 'Inappropriate ioctl for device')
      
      .pixi/envs/default/lib/python3.8/getpass.py:69: error
      
      During handling of the above exception, another exception occurred:
      
      self = <test_utils_duo.TestSecrets object at 0x7fb8d3341880>
      mock_getpass = <MagicMock name='getpass' id='140431788580144'>
      setup_env = PosixPath('/tmp/tmp91zi1jb0')
      
          @patch('getpass.getpass')
          def test_secret_workflow(self, mock_getpass, setup_env):
              mock_getpass.side_effect = ["pass1", "pass2"]
      
              secrets = Secrets()
      >       secrets.set("user")
      
      tests/test_utils_duo.py:108: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      slic/utils/duo.py:14: in set
          secret = getpass(prompt=f"Please enter the secret \"{name}\": ")
      .pixi/envs/default/lib/python3.8/getpass.py:91: in unix_getpass
          passwd = fallback_getpass(prompt, stream)
      .pixi/envs/default/lib/python3.8/getpass.py:126: in fallback_getpass
          return _raw_input(prompt, stream)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      prompt = 'Please enter the secret "user": '
      stream = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
      input = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>
      
          def _raw_input(prompt="", stream=None, input=None):
              # This doesn't save the string in the GNU readline history.
              if not stream:
                  stream = sys.stderr
              if not input:
                  input = sys.stdin
              prompt = str(prompt)
              if prompt:
                  try:
                      stream.write(prompt)
                  except UnicodeEncodeError:
                      # Use replace error handler to get as much as possible printed.
                      prompt = prompt.encode(stream.encoding, 'replace')
                      prompt = prompt.decode(stream.encoding)
                      stream.write(prompt)
                  stream.flush()
              # NOTE: The Python C API calls flockfile() (and unlock) during readline.
              line = input.readline()
              if not line:
      >           raise EOFError
      E           EOFError
      
      .pixi/envs/default/lib/python3.8/getpass.py:148: EOFError
      

      📌 Teardown phase

      duration:

      0.00046942615881562233
      

      outcome:

      passed
      
    • Test 5

      📌 Setup phase

      duration:

      0.0009128316305577755
      

      outcome:

      passed
      

      📌 Call phase

      duration:

      0.000876374077051878
      

      outcome:

      failed
      

      crash:

      path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/getpass.py
      lineno: 148
      message: EOFError
      

      traceback:

      -   path: tests/test_utils_duo.py
        lineno: 124
        message: None
      -   path: slic/utils/duo.py
        lineno: 14
        message: in set
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 91
        message: in unix_getpass
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 126
        message: in fallback_getpass
      -   path: .pixi/envs/default/lib/python3.8/getpass.py
        lineno: 148
        message: EOFError
      

      longrepr:

      prompt = 'Please enter the secret "canceled_key": '
      stream = <_io.TextIOWrapper encoding='UTF-8'>
      
          def unix_getpass(prompt='Password: ', stream=None):
              """Prompt for a password, with echo turned off.
      
              Args:
                prompt: Written on stream to ask for the input.  Default: 'Password: '
                stream: A writable file object to display the prompt.  Defaults to
                        the tty.  If no tty is available defaults to sys.stderr.
              Returns:
                The seKr3t input.
              Raises:
                EOFError: If our input tty or stdin was closed.
                GetPassWarning: When we were unable to turn echo off on the input.
      
              Always restores terminal settings before returning.
              """
              passwd = None
              with contextlib.ExitStack() as stack:
                  try:
                      # Always try reading and writing directly on the tty first.
                      fd = os.open('/dev/tty', os.O_RDWR|os.O_NOCTTY)
                      tty = io.FileIO(fd, 'w+')
                      stack.enter_context(tty)
                      input = io.TextIOWrapper(tty)
                      stack.enter_context(input)
                      if not stream:
                          stream = input
                  except OSError as e:
                      # If that fails, see if stdin can be controlled.
                      stack.close()
                      try:
                          fd = sys.stdin.fileno()
                      except (AttributeError, ValueError):
                          fd = None
                          passwd = fallback_getpass(prompt, stream)
                      input = sys.stdin
                      if not stream:
                          stream = sys.stderr
      
                  if fd is not None:
                      try:
      >                   old = termios.tcgetattr(fd)     # a copy to save
      E                   termios.error: (25, 'Inappropriate ioctl for device')
      
      .pixi/envs/default/lib/python3.8/getpass.py:69: error
      
      During handling of the above exception, another exception occurred:
      
      self = <test_utils_duo.TestSecrets object at 0x7fb8d33417c0>
      mock_getpass = <MagicMock name='getpass' id='140431793882880'>
      setup_env = PosixPath('/tmp/tmpap06w1mn')
      capsys = <_pytest.capture.CaptureFixture object at 0x7fb8d33088e0>
      
          @patch('getpass.getpass')
          def test_keyboard_interrupt(self, mock_getpass, setup_env, capsys):
              mock_getpass.side_effect = KeyboardInterrupt()
      
              secrets_path = setup_env / ".slic" / "secrets"
              with open(secrets_path, "rb") as f:
                  initial_content = pickle.load(f)
      
              secrets = Secrets()
      >       secrets.set("canceled_key")
      
      tests/test_utils_duo.py:124: 
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      slic/utils/duo.py:14: in set
          secret = getpass(prompt=f"Please enter the secret \"{name}\": ")
      .pixi/envs/default/lib/python3.8/getpass.py:91: in unix_getpass
          passwd = fallback_getpass(prompt, stream)
      .pixi/envs/default/lib/python3.8/getpass.py:126: in fallback_getpass
          return _raw_input(prompt, stream)
      _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
      
      prompt = 'Please enter the secret "canceled_key": '
      stream = <_io.TextIOWrapper encoding='UTF-8'>
      input = <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>
      
          def _raw_input(prompt="", stream=None, input=None):
              # This doesn't save the string in the GNU readline history.
              if not stream:
                  stream = sys.stderr
              if not input:
                  input = sys.stdin
              prompt = str(prompt)
              if prompt:
                  try:
                      stream.write(prompt)
                  except UnicodeEncodeError:
                      # Use replace error handler to get as much as possible printed.
                      prompt = prompt.encode(stream.encoding, 'replace')
                      prompt = prompt.decode(stream.encoding)
                      stream.write(prompt)
                  stream.flush()
              # NOTE: The Python C API calls flockfile() (and unlock) during readline.
              line = input.readline()
              if not line:
      >           raise EOFError
      E           EOFError
      
      .pixi/envs/default/lib/python3.8/getpass.py:148: EOFError
      

      📌 Teardown phase

      duration:

      0.0006008930504322052
      

      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: 13
      -   nodeid: tests/test_utils_duo.py::TestPickledDictReal::test_load
        type: Function
        lineno: 47
      
    • tests/test_utils_duo.py::TestSecrets
      • Outcome: passed
      • result:
      -   nodeid: tests/test_utils_duo.py::TestSecrets::test_default_filename
        type: Function
        lineno: 88
      -   nodeid: tests/test_utils_duo.py::TestSecrets::test_secret_workflow
        type: Function
        lineno: 102
      -   nodeid: tests/test_utils_duo.py::TestSecrets::test_keyboard_interrupt
        type: Function
        lineno: 114
      

⚠️ 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
Warnings nº3
message: Can not control echo on the terminal.
category: GetPassWarning
when: runtest
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/getpass.py
lineno: 91
Warnings nº4
message: Can not control echo on the terminal.
category: GetPassWarning
when: runtest
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/getpass.py
lineno: 91
Warnings nº5
message: Can not control echo on the terminal.
category: GetPassWarning
when: runtest
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/getpass.py
lineno: 91