main test

This commit is contained in:
Auriane Lartigue 2022-01-11 14:21:02 +01:00
parent 0c901901fc
commit be70fea80e
2 changed files with 2 additions and 3 deletions

View file

@ -104,5 +104,4 @@ def create_app():
if __name__ == "__main__": return app
app.run()

View file

@ -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()