Skip to content

Commit 13f8047

Browse files
authored
Add notes on load test protocol
1 parent 52788b6 commit 13f8047

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from unittest import TestLoader, TestSuite
1111

12+
# Names of module to be tested
1213
test_packages: list[str] = [
1314
"tests.test_ancient",
1415
# "tests.test_cli",
@@ -24,13 +25,17 @@
2425
def load_tests(
2526
loader: TestLoader, standard_tests: TestSuite, pattern: str
2627
) -> TestSuite:
27-
"""Load test protocol"""
28+
"""Load test protocol
29+
See: https://docs.python.org/3/library/unittest.html#id1
30+
"""
2831
suite = TestSuite()
2932
for test_package in test_packages:
3033
tests = loader.loadTestsFromName(test_package)
3134
suite.addTests(tests)
3235
return suite
3336

37+
3438
if __name__ == "__main__":
3539
import unittest
40+
3641
unittest.main()

0 commit comments

Comments
 (0)