-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.py
48 lines (40 loc) · 1.92 KB
/
tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import unittest
import doctest
import channel
import historiography
import spacetime
import vlq
import utils
import s_address
import vim
from dsn.s_expr import utils as s_expr_utils
from dsn.s_expr import from_python as s_expr_from_python
from dsn.viewports import utils as viewports_utils
def load_tests(loader, tests, ignore):
# Test the docstrings inside our actual codebase
tests.addTests(doctest.DocTestSuite(utils))
tests.addTests(doctest.DocTestSuite(channel))
tests.addTests(doctest.DocTestSuite(historiography))
tests.addTests(doctest.DocTestSuite(spacetime))
tests.addTests(doctest.DocTestSuite(vlq))
tests.addTests(doctest.DocTestSuite(s_address))
tests.addTests(doctest.DocTestSuite(s_expr_utils))
tests.addTests(doctest.DocTestSuite(vim))
tests.addTests(doctest.DocTestSuite(viewports_utils))
tests.addTests(doctest.DocTestSuite(s_expr_from_python))
# Some tests in the doctests style are too large to nicely fit into a docstring; better to keep them separate:
tests.addTests(doctest.DocFileSuite("doctests/construct_x.txt"))
tests.addTests(doctest.DocFileSuite("doctests/construct_y.txt"))
tests.addTests(doctest.DocFileSuite("doctests/h_utils.txt"))
tests.addTests(doctest.DocFileSuite("doctests/unambiguous_weaving.txt"))
tests.addTests(doctest.DocFileSuite("doctests/form_analysis_into.txt"))
tests.addTests(doctest.DocFileSuite("doctests/form_analysis_construct.txt"))
tests.addTests(doctest.DocFileSuite("doctests/evaluator.txt"))
tests.addTests(doctest.DocFileSuite("doctests/free_variables.txt"))
tests.addTests(doctest.DocFileSuite("doctests/unused_definitions.txt"))
tests.addTests(doctest.DocFileSuite("doctests/name_dependencies.txt"))
tests.addTests(doctest.DocFileSuite("doctests/lexical_addressing_x.txt"))
tests.addTests(doctest.DocFileSuite("doctests/concoct.txt"))
return tests
if __name__ == '__main__':
unittest.main()