Compare commits
1 Commits
5d259635a2
...
a850a526e6
Author | SHA1 | Date | |
---|---|---|---|
a850a526e6 |
@ -6,9 +6,3 @@
|
|||||||
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,15 +15,12 @@ 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