Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ def setup(self, tmpdir_factory):
os.chdir(my_tmpdir)

@pytest.fixture(autouse=True, scope="function")
def setup_and_teardown(self, request, caplog: pytest.LogCaptureFixture):
def setup_and_teardown(self, request, caplog: pytest.LogCaptureFixture, vcr):
"""Set up before each test and clean up after each test."""
# Clean up resources from any previous tests
self.clean_resource_files()

# Run the test
yield

# Clean up resources respecting the resources_to_preserve_filter
# vcr dependency keeps the cassette open so teardown HTTP calls are served from the recording.
runner = CliRunner()
self.test_resource_cleanup(runner, caplog)

Expand Down
Loading