Compare commits
1 Commits
a850a526e6
...
5d259635a2
Author | SHA1 | Date | |
---|---|---|---|
5d259635a2 |
@ -6,3 +6,9 @@
|
|||||||
language: system
|
language: system
|
||||||
files: ^.*\.py$
|
files: ^.*\.py$
|
||||||
exclude: ^(migrations).*$
|
exclude: ^(migrations).*$
|
||||||
|
- id: unittest
|
||||||
|
name: unittest
|
||||||
|
entry: python -m unittest discover ki
|
||||||
|
language: system
|
||||||
|
exclude: .*
|
||||||
|
always_run: true
|
||||||
|
@ -15,12 +15,15 @@ class TestProfileEndpoint(unittest.TestCase):
|
|||||||
self.client = app.test_client()
|
self.client = app.test_client()
|
||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
|
db.drop_all()
|
||||||
|
db.engine.dispose()
|
||||||
config = migrate.get_config()
|
config = migrate.get_config()
|
||||||
command.upgrade(config, "head")
|
command.upgrade(config, "head")
|
||||||
|
|
||||||
seed()
|
seed()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
|
db.drop_all()
|
||||||
db.engine.dispose()
|
db.engine.dispose()
|
||||||
|
|
||||||
def test_create_profile(self):
|
def test_create_profile(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user