forked from kompetenzinventar/ki-backend
seed entire profile
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
from alembic import command
|
||||
import unittest
|
||||
|
||||
from app import app, migrate
|
||||
from ki.commands import seed
|
||||
from app import app, db, migrate
|
||||
from ki.actions import seed
|
||||
|
||||
|
||||
class TestSkillsEndpoint(unittest.TestCase):
|
||||
@ -15,7 +15,11 @@ class TestSkillsEndpoint(unittest.TestCase):
|
||||
config = migrate.get_config()
|
||||
command.upgrade(config, "head")
|
||||
|
||||
seed()
|
||||
seed(True)
|
||||
|
||||
def tearDown(self):
|
||||
db.drop_all()
|
||||
db.engine.dispose()
|
||||
|
||||
def test_skills_options(self):
|
||||
response = self.client.options("/skills")
|
||||
|
Reference in New Issue
Block a user