20
20
import scwidgets
21
21
from scwidgets .check import CheckRegistry
22
22
23
- sys .path .insert (0 , os .path .abspath (".." ))
24
- from test_check import mock_checkable_widget # noqa: E402
25
- from test_check import single_param_check # noqa: E402
23
+ sys .path .insert (0 , os .path .abspath ("../.. " ))
24
+ from tests . test_check import mock_checkable_widget # noqa: E402
25
+ from tests . test_check import single_param_check # noqa: E402
26
26
27
27
# -
28
28
29
29
scwidgets .get_css_style ()
30
30
31
31
32
- def test_check_registry (use_fingerprint , failing , buggy ):
32
+ def create_check_registry (use_fingerprint , failing , buggy ):
33
33
check_registry = CheckRegistry ()
34
34
checkable_widget = mock_checkable_widget (check_registry )
35
35
@@ -52,16 +52,16 @@ def test_check_registry(use_fingerprint, failing, buggy):
52
52
# Test if CheckRegistry shows correct output
53
53
54
54
# Test 1.1
55
- test_check_registry (use_fingerprint = False , failing = False , buggy = False )
55
+ create_check_registry (use_fingerprint = False , failing = False , buggy = False )
56
56
57
57
# Test 1.2
58
- test_check_registry (use_fingerprint = True , failing = False , buggy = False )
58
+ create_check_registry (use_fingerprint = True , failing = False , buggy = False )
59
59
60
60
# Test 1.3
61
- test_check_registry (use_fingerprint = False , failing = True , buggy = False )
61
+ create_check_registry (use_fingerprint = False , failing = True , buggy = False )
62
62
63
63
# Test 1.4
64
- test_check_registry (use_fingerprint = True , failing = True , buggy = False )
64
+ create_check_registry (use_fingerprint = True , failing = True , buggy = False )
65
65
66
66
# Test 1.5
67
- test_check_registry (use_fingerprint = False , failing = False , buggy = True )
67
+ create_check_registry (use_fingerprint = False , failing = False , buggy = True )
0 commit comments