Hi,
I ran pytest -m connection
in conda mflix environment and got the result like the following:
platform linux -- Python 3.9.7, pytest-3.3.0, py-1.8.0, pluggy-0.6.0
rootdir: /home/ashrulochan/Downloads/MDBC, inifile: pytest.ini
plugins: anyio-3.5.0, flask-0.11.0
collected 43 items
tests/test_db_connection.py .... [100%]
============================= 39 tests deselected ==============================
=================== 4 passed, 39 deselected in 7.15 seconds ==================
Can’t figure out what’s the error.
I have saved the .ini file like:
[PROD]
SECRET_KEY = Ashrulochan
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix.lweb2.mongodb.net/test
MFLIX_NS = sample_mflix
[TEST]
SECRET_KEY = AshrulochanTest
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix.lweb2.mongodb.net/test
MFLIX_NS = sample_mflix
`