-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
executable file
·31 lines (24 loc) · 919 Bytes
/
test.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
#!/usr/bin/env python
# (c) 2014-2023 Research Software Lab, Centre for Digital Humanities, Utrecht University
# Licensed under the EUPL-1.2 or later. You may obtain a copy of the license at
# https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.
"""
Script for automatically running the doctest and unittest test cases.
"""
from doctest import testmod, ELLIPSIS
import unittest
import coloringbook, coloringbook.testing
def test_all():
testmod(coloringbook.testing)
testmod(coloringbook)
testmod(coloringbook.models)
testmod(coloringbook.views, optionflags = ELLIPSIS)
testmod(coloringbook.admin)
testmod(coloringbook.admin.utilities, optionflags = ELLIPSIS)
testmod(coloringbook.admin.forms)
testmod(coloringbook.admin.views)
testmod(coloringbook.utilities)
testmod(coloringbook.mail.utilities)
unittest.main()
if __name__ == '__main__':
test_all()