Problem with pytest -m migration

Hi,
someone will help me with this?

Please check your configuration file. If you are still facing the issue, please share the contents of .ini file.

Kanika

content of my .ini file:

    # Ticket: Connection

Rename this file to .ini after filling in your MFLIX_DB_URI and your SECRET_KEY

Do not surround the URI with quotes

[PROD]
SECRET_KEY = super_secret_key_you_should_change
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix-pjs4d.mongodb.net

[TEST]
SECRET_KEY = super_secret_testing_key
MFLIX_DB_URI = mongodb+srv://m220student:m220password@mflix-pjs4d.mongodb.net

the reason may be that this file has become hidden?

No, if that would be the case your test cases wouldn’t have run successfully before also.

Have you changed the cluster connection string in the migration file? If not, please do that as well.

Also, if nothing works, share the code changes you have done.

Kanika

1 Like