freezer.tests.unit.mode.test_mongo module¶
- class freezer.tests.unit.mode.test_mongo.TestMongoMode(methodName='runTest')¶
Bases:
TestCase- test_client_uses_mongodb_uri_scheme(mock_client)¶
The MongoDB client must be created with a valid connection URI.
pymongo 4.x rejects a bare “host:port” string with “[Errno 22] Invalid argument”; the connection string must carry the “mongodb://” scheme. This asserts MongoMode builds such a URI.