summaryrefslogtreecommitdiff
path: root/tests/test_imports.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_imports.py')
-rw-r--r--tests/test_imports.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_imports.py b/tests/test_imports.py
index 7692483..09ef5d5 100644
--- a/tests/test_imports.py
+++ b/tests/test_imports.py
@@ -14,16 +14,18 @@ def get_added_classes():
14 match = re.match(r"m\.add_class::<(.+)>\(\)\?;", line.strip()) 14 match = re.match(r"m\.add_class::<(.+)>\(\)\?;", line.strip())
15 if match is not None: 15 if match is not None:
16 classes.append(match.group(1)) 16 classes.append(match.group(1))
17 continue
17 return classes 18 return classes
18 19
19 20
20def test_added_classes(): 21def test_added_classes():
21 """ 22 """
22 Make sure that there's no class that we added in Rust but didn't import in 23 Make sure that there's no class that we added in Rust but didn't import in
23 `__init__.py` and vice versa. 24 `__init__.py`.
24 """ 25 """
25 added_classes = get_added_classes() 26 added_classes = get_added_classes()
26 assert added_classes == list(adblock.__all__) 27 for c in added_classes:
28 assert c in adblock.__all__
27 29
28 30
29def test_dunder_all_classes_imported(): 31def test_dunder_all_classes_imported():