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:
Bruno Domingues
2025-11-25 00:44:55 -03:00
parent 463906073e
commit f3c88885ea
4 changed files with 79 additions and 13 deletions

View File

@@ -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',
}