File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,22 @@ def test_change_excl_zone_denom():
11
11
assert core .get_max_window_size (10 ) == 7
12
12
13
13
14
- def test_reset ():
14
+ def test_reset_one_var ():
15
15
ref = config .STUMPY_EXCL_ZONE_DENOM
16
16
17
17
config .STUMPY_EXCL_ZONE_DENOM += 1
18
18
config ._reset ("STUMPY_EXCL_ZONE_DENOM" )
19
19
20
20
assert config .STUMPY_EXCL_ZONE_DENOM == ref
21
+
22
+
23
+ def test_reset_all_vars ():
24
+ ref_fastmath = config .STUMPY_FASTMATH_TRUE
25
+ ref_excl_zone_denom = config .STUMPY_EXCL_ZONE_DENOM
26
+
27
+ config .STUMPY_FASTMATH_TRUE = not config .STUMPY_FASTMATH_TRUE
28
+ config .STUMPY_EXCL_ZONE_DENOM += 1
29
+
30
+ config ._reset ()
31
+ assert config .STUMPY_FASTMATH_TRUE == ref_fastmath
32
+ assert config .STUMPY_EXCL_ZONE_DENOM == ref_excl_zone_denom
You can’t perform that action at this time.
0 commit comments