Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add ConfigManager fixture to tests
This commit adds a new fixture, `config_manager`, to the tests. The fixture is used to initialize the `ConfigManager` class with an environment file specified as `.env.example`. This fixture will be used in future tests to access and manipulate configuration settings. Refactor the ConfigManager initialization tests This commit refactors the initialization tests for the `ConfigManager` class. It adds two new tests: `test_init_with_env_variables` and `test_init_with_env_file`. The `test_init_with_env_variables` test verifies that the `ConfigManager` class can be initialized with environment variables. It sets the required environment variables and asserts that the `ConfigManager` instance is correctly initialized with the expected values. The `test_init_with_env_file` test verifies that the `ConfigManager` class can be initialized with an environment file. It mocks the existence of the environment file and asserts that the `ConfigManager` instance is correctly initialized with the expected values from the file. These changes improve the test coverage and ensure that the `ConfigManager` class is properly tested for different initialization scenarios.
- Loading branch information