Closed jschalk closed 2 weeks ago
This PR updates test files to use a fixture for environment setup/cleanup and modifies the fiscal directory path construction to use a function call instead of hardcoded paths.
sequenceDiagram
actor Tester
participant TestFunction
participant Fixture
Tester->>TestFunction: Call test_fiscal_build_from_df_ReturnsObj_Scenario0_1FiscalID
TestFunction->>Fixture: Call brick_env_setup_cleanup
Fixture-->>TestFunction: Setup environment
TestFunction-->>Tester: Execute test
TestFunction->>Fixture: Call brick_env_setup_cleanup
Fixture-->>TestFunction: Cleanup environment
Tester->>TestFunction: Call test_fiscal_build_from_df_ReturnsObj_Scenario1_TwoFiscalIDs
TestFunction->>Fixture: Call brick_env_setup_cleanup
Fixture-->>TestFunction: Setup environment
TestFunction-->>Tester: Execute test
TestFunction->>Fixture: Call brick_env_setup_cleanup
Fixture-->>TestFunction: Cleanup environment
classDiagram
class TestFiscalBuild {
+test_fiscal_build_from_df_ReturnsObj_Scenario0_1FiscalID(brick_env_setup_cleanup)
+test_fiscal_build_from_df_ReturnsObj_Scenario1_TwoFiscalIDs(brick_env_setup_cleanup)
}
note for TestFiscalBuild "Updated to use brick_env_setup_cleanup fixture and dynamic fiscal directory path."
Change | Details | Files |
---|---|---|
Added test fixture dependency for environment setup and cleanup |
|
src/f09_brick/test_fiscal_build/test_brick_fiscal_build.py |
Updated fiscal directory path construction |
|
src/f09_brick/test_fiscal_build/test_brick_fiscal_build.py |
Summary by Sourcery
Fix the directory path in test cases and add a fixture for environment setup and cleanup.
Bug Fixes:
Tests: