Skip to content

Commit 9a4cf40

Browse files
committed
reset after tests
1 parent 6e9f325 commit 9a4cf40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_init.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
@pytest.fixture(autouse=True)
99
def _reset():
10+
b_global = Badger.current
1011
_local.set(Badger())
12+
yield
13+
_local.set(b_global)
1114

1215

1316
def test_init():

0 commit comments

Comments
 (0)