Files
FitTrack2/FitnessSync/pytest_output.txt
2026-01-11 06:06:43 -08:00

43 lines
3.1 KiB
Plaintext

============================= test session starts ==============================
platform linux -- Python 3.13.3, pytest-9.0.2, pluggy-1.6.0 -- /home/sstent/Projects/FitTrack2/FitnessSync/backend/.venv/bin/python3
cachedir: .pytest_cache
rootdir: /home/sstent/Projects/FitTrack2/FitnessSync/backend
configfile: pyproject.toml
plugins: asyncio-1.3.0, cov-7.0.0, anyio-4.12.1
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collecting ... collected 0 items / 1 error
==================================== ERRORS ====================================
______________ ERROR collecting tests/services/test_discovery.py _______________
ImportError while importing test module '/home/sstent/Projects/FitTrack2/FitnessSync/backend/tests/services/test_discovery.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend/tests/services/test_discovery.py:2: in <module>
from backend.src.services.discovery import SegmentDiscoveryService
E ModuleNotFoundError: No module named 'backend'
=============================== warnings summary ===============================
backend/src/models/base.py:3
/home/sstent/Projects/FitTrack2/FitnessSync/backend/src/models/base.py:3: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
Base = declarative_base()
backend/src/api/status.py:21
/home/sstent/Projects/FitTrack2/FitnessSync/backend/src/api/status.py:21: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
class SyncLogResponse(BaseModel):
backend/src/api/scheduling.py:23
/home/sstent/Projects/FitTrack2/FitnessSync/backend/src/api/scheduling.py:23: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
class ScheduledJobResponse(BaseModel):
backend/src/api/bike_setups.py:33
/home/sstent/Projects/FitTrack2/FitnessSync/backend/src/api/bike_setups.py:33: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
class BikeSetupRead(BaseModel):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR backend/tests/services/test_discovery.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 4 warnings, 1 error in 0.14s =========================