main test
This commit is contained in:
parent
0c901901fc
commit
be70fea80e
2 changed files with 2 additions and 3 deletions
|
@ -104,5 +104,4 @@ def create_app():
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
return app
|
||||||
app.run()
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import unittest
|
import unittest
|
||||||
from app import app
|
|
||||||
|
|
||||||
class UnitTest(unittest.TestCase):
|
class UnitTest(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
from app import app
|
||||||
app.testing = True
|
app.testing = True
|
||||||
self.app = app.test_client()
|
self.app = app.test_client()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue