This commit is contained in:
2026-05-06 22:41:53 +03:30
parent 2ce93b51d7
commit dfb103e16a
5 changed files with 45 additions and 76 deletions
+4 -30
View File
@@ -3,34 +3,8 @@ platform linux -- Python 3.10.20, pytest-9.0.3, pluggy-1.6.0 -- /usr/local/bin/p
cachedir: .pytest_cache
rootdir: /app
configfile: pytest.ini
collecting ... collected 0 items / 1 error
collecting ... collected 1 item
==================================== ERRORS ====================================
________________ ERROR collecting tests/test_authentication.py _________________
ImportError while importing test module '/app/tests/test_authentication.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.10/site-packages/_pytest/python.py:507: in importtestmodule
mod = import_path(
/usr/local/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
importlib.import_module(module_name)
/usr/local/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
???
<frozen importlib._bootstrap>:1027: in _find_and_load
???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:688: in _load_unlocked
???
/usr/local/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:197: in exec_module
exec(co, module.__dict__)
tests/test_authentication.py:5: in <module>
from utils.yaml_loader import load_config
E ImportError: cannot import name 'load_config' from 'utils.yaml_loader' (/app/utils/yaml_loader.py)
=========================== short test summary info ============================
ERROR tests/test_authentication.py
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.52s ===============================
tests/test_authentication.py::test_auth_flow PASSED [100%]
============================== 1 passed in 0.67s ===============================