-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
test.py
27 lines (19 loc) · 717 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
#!/usr/bin/env python
import unittest
class PackagingTests(unittest.TestCase):
"""
Some simple tests to make sure the package works. Does not test functionality.
"""
def test_does_not_break_cl(self):
"""
Can we do some import statements like in the CL project? Test if we
are about to break Courtlistener.
"""
try:
# currently from courtlistener.cl.scrapers.tasks
from seal_rookery import seals_data, seals_root
self.assertTrue(seals_data["ca1"]["has_seal"])
except ImportError as e:
self.fail("Couldn't import seals_data and seals_root like in CL")
if __name__ == "__main__":
unittest.main()