Commit 506d2f02a7877f9535409dd1e5bb2a9dfe82e488
1 parent
919d8186
Exists in
master
and in
4 other branches
Initialize unit testing
Showing
4 changed files
with
22 additions
and
0 deletions
Show diff stats
.gitignore
INSTALL.md
... | ... | @@ -0,0 +1,17 @@ |
1 | +import unittest | |
2 | +from pdc_config import TestConfig | |
3 | +from app import create_app | |
4 | + | |
5 | + | |
6 | +class BaseTestCase(unittest.TestCase): | |
7 | + def setUp(self): | |
8 | + # configure data base | |
9 | + self.app = create_app(TestConfig) | |
10 | + self.app_context = self.app.app_context() | |
11 | + self.app_context.push() | |
12 | + | |
13 | + def tearDown(self): | |
14 | + self.app_context.pop() | |
15 | + | |
16 | + def test_always_true(self): | |
17 | + self.assertTrue(True) | ... | ... |