We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7bb19 commit 1c52a41Copy full SHA for 1c52a41
tests/test_utils.py
@@ -14,12 +14,10 @@
14
15
16
@pytest.fixture(autouse=True)
17
-def clear_seq_state():
18
- seq._instances = {}
19
- seq._locks = {}
+def reset_seq():
+ seq._reset()
20
yield
21
22
23
24
25
def test_basic_number_sequence():
tests/utils.py
@@ -209,6 +209,12 @@ def _generate_text_value(self) -> str:
209
stringified_value = [str(v) for v in value]
210
return "".join(stringified_value)
211
212
+ @classmethod
213
+ def _reset(cls):
214
+ """Reset all sequence state. Used for testing purposes."""
215
+ cls._instances.clear()
216
+ cls._locks.clear()
217
+
218
@classmethod
219
def iter(
220
cls,
0 commit comments