Setup and teardown for each test
(self, tmp_path, monkeypatch)
| 201 | |
| 202 | @pytest.fixture(autouse=True) |
| 203 | def setup_and_teardown(self, tmp_path, monkeypatch): |
| 204 | """Setup and teardown for each test""" |
| 205 | # Change to temp directory |
| 206 | monkeypatch.chdir(tmp_path) |
| 207 | # Clear singleton instances before each test |
| 208 | ExcelStoreBase._instances.clear() |
| 209 | yield |
| 210 | # Cleanup after test |
| 211 | ExcelStoreBase._instances.clear() |
| 212 | |
| 213 | def test_get_instance_returns_same_instance(self): |
| 214 | """Test that get_instance returns the same instance for same parameters""" |
nothing calls this directly
no outgoing calls
no test coverage detected