You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
3.2 KiB
Plaintext

C:\dev\be-lcca\venv\Lib\site-packages\pytest_asyncio\plugin.py:247: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"
warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
============================= test session starts =============================
platform win32 -- Python 3.11.9, pytest-8.3.4, pluggy-1.5.0 -- C:\dev\be-lcca\venv\Scripts\python.exe
cachedir: .pytest_cache
rootdir: C:\dev\be-lcca
configfile: pytest.ini
plugins: anyio-4.8.0, Faker-30.10.0, asyncio-1.3.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collecting ... collected 0 items / 2 errors
=================================== ERRORS ====================================
____________ ERROR collecting tests/unit/test_masterdata_logic.py _____________
tests\unit\test_masterdata_logic.py:2: in <module>
from src.masterdata.service import calculate_pmt
src\masterdata\service.py:6: in <module>
from src.database.service import search_filter_sort_paginate
src\database\service.py:7: in <module>
from .core import DbSession
src\database\core.py:19: in <module>
from src.config import SQLALCHEMY_DATABASE_URI, COLLECTOR_URI
src\config.py:99: in <module>
DEV_USERNAME = config("DEV_USERNAME")
venv\Lib\site-packages\starlette\config.py:90: in __call__
return self.get(key, cast, default)
venv\Lib\site-packages\starlette\config.py:107: in get
raise KeyError(f"Config '{key}' is missing, and has no default.")
E KeyError: "Config 'DEV_USERNAME' is missing, and has no default."
___________ ERROR collecting tests/unit/test_masterdata_service.py ____________
tests\unit\test_masterdata_service.py:3: in <module>
from src.masterdata.service import create, get
src\masterdata\service.py:6: in <module>
from src.database.service import search_filter_sort_paginate
src\database\service.py:7: in <module>
from .core import DbSession
src\database\core.py:19: in <module>
from src.config import SQLALCHEMY_DATABASE_URI, COLLECTOR_URI
src\config.py:99: in <module>
DEV_USERNAME = config("DEV_USERNAME")
venv\Lib\site-packages\starlette\config.py:90: in __call__
return self.get(key, cast, default)
venv\Lib\site-packages\starlette\config.py:107: in get
raise KeyError(f"Config '{key}' is missing, and has no default.")
E KeyError: "Config 'DEV_USERNAME' is missing, and has no default."
=========================== short test summary info ===========================
ERROR tests/unit/test_masterdata_logic.py - KeyError: "Config 'DEV_USERNAME' ...
ERROR tests/unit/test_masterdata_service.py - KeyError: "Config 'DEV_USERNAME...
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!
============================== 2 errors in 0.67s ==============================