We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d3aa4 commit c39d62dCopy full SHA for c39d62d
.travis.yml
@@ -4,4 +4,5 @@ python:
4
install:
5
- pipenv install
6
script:
7
- - pytest
+ - pytest
8
+ - python tests.py
tests.py
@@ -0,0 +1,23 @@
1
+from unittest import TestCase, main
2
+from flask import current_app
3
+from app import create_app
+
+class BasicsTestCase(TestCase):
+ def setUp(self):
+ self.app = create_app('testing')
9
+ self.app_context = self.app.app_context()
10
+ self.app_context.push()
11
12
+ def tearDown(self):
13
+ self.app_context.pop()
14
15
+ def test_app_exists(self):
16
+ self.assertFalse(current_app is None)
17
18
+ def test_app_is_testing(self):
19
+ self.assertTrue(current_app.config['TESTING'])
20
21
22
+if __name__ == '__main__':
23
+ main(verbosity=2)
0 commit comments