Skip to content

Commit

Permalink
Add conftest fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahlanzrath committed Dec 3, 2024
1 parent 22e4c13 commit 0ff3a1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pytest
from cadet import Cadet

@pytest.fixture(scope="function", autouse=True)
def reset_cadet_meta():
"""
Automatically reset Cadet shared state for every test.
"""
Cadet.reset()

0 comments on commit 0ff3a1f

Please sign in to comment.