diff --git a/.gitignore b/.gitignore index 5cb79ee..9c1dd8c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ app_config.py !resources/app_config.py .idea .flaskenv +*.xml +.coverage diff --git a/INSTALL.md b/INSTALL.md index 8bd58a0..e89b679 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -7,3 +7,4 @@ run through docker install standalone on your own server update your server installation ress/flaskenv > .flaskenv +run tests diff --git a/requirements-tests.py b/requirements-tests.py new file mode 100644 index 0000000..9955dec --- /dev/null +++ b/requirements-tests.py @@ -0,0 +1,2 @@ +pytest +pytest-cov diff --git a/tests/backend_test.py b/tests/backend_test.py new file mode 100644 index 0000000..27c1fed --- /dev/null +++ b/tests/backend_test.py @@ -0,0 +1,17 @@ +import unittest +from pdc_config import TestConfig +from app import create_app + + +class BaseTestCase(unittest.TestCase): + def setUp(self): + # configure data base + self.app = create_app(TestConfig) + self.app_context = self.app.app_context() + self.app_context.push() + + def tearDown(self): + self.app_context.pop() + + def test_always_true(self): + self.assertTrue(True) -- libgit2 0.21.2