fastapi-mongo icon indicating copy to clipboard operation
fastapi-mongo copied to clipboard

Missing requirements

Open LittleColin opened this issue 1 year ago • 0 comments

I'm having a few issues just getting this repo working out of the box and I'm hoping you can help. Specifically trying to get pytest running and facing the following:

E   ModuleNotFoundError: No module named 'asgi_lifespan'

So I added asgi_lifespan==2.1.0

Then

E   ModuleNotFoundError: No module named 'pydantic_settings'

So I added pydantic-settings==2.2.1

Then

E   ModuleNotFoundError: No module named 'pkg_resources'

So I pip install setuptools

The tests now execute but fail with:

ERROR tests/test_mock_authen.py::TestMockAuthentication::test_api_processed_jobs - pymongo.errors.ConfigurationError: No default database name defined or provided.
ERROR tests/test_mock_database.py::TestMockAuthentication::test_mock_databases - pymongo.errors.ConfigurationError: No default database name defined or provided.
ERROR tests/test_mock_database.py::TestMockAuthentication::test_mock_database - pymongo.errors.ConfigurationError: No default database name defined or provided.

This is running on python 3.10 on Linux - is there something fundamental I'm doing wrong?

LittleColin avatar Jul 17 '24 08:07 LittleColin