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__":
|
||||
app.run()
|
||||
return app
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import unittest
|
||||
from app import app
|
||||
|
||||
class UnitTest(unittest.TestCase):
|
||||
def setUp(self):
|
||||
from app import app
|
||||
app.testing = True
|
||||
self.app = app.test_client()
|
||||
|
||||
|
|
Loading…
Reference in a new issue