SIENTIAPDE-1350: Configure cleanup test script and improve test isolation. This commit configures the cleanup test script to load environment variables from a .env file and use them for Temporal connection. It also adds a fixture to clean up temporary directories created by tests, ensuring better test isolation and preventing potential conflicts. Additionally, it adds the 'uri' property to the MongoDB config.
This commit is contained in:
@@ -96,6 +96,7 @@ def test_build_mongo_db_config_with_env_vars():
|
||||
'connection_string': 'mongodb://sientia1:sientia1@localhost:27018',
|
||||
'database_name': 'test_db',
|
||||
'ttl_index_seconds': 3600,
|
||||
'uri': 'localhost:27018',
|
||||
}
|
||||
|
||||
|
||||
@@ -109,6 +110,7 @@ def test_build_mongo_db_config_with_defaults():
|
||||
'connection_string': 'mongodb://root:wKZDbMNU1c@localhost:27018',
|
||||
'database_name': 'sientia',
|
||||
'ttl_index_seconds': 3600,
|
||||
'uri': 'localhost:27018',
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user