mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-03 03:10:33 +00:00
Simplify Config setup and move some functions to dedicated files
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
import unittest
|
||||
import time
|
||||
from app import create_app, db
|
||||
from app.models import User, AnonymousUser, Role, Permission
|
||||
from . import TestConfig
|
||||
import time
|
||||
import unittest
|
||||
|
||||
|
||||
class UserModelTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.app = create_app('testing')
|
||||
self.app = create_app(TestConfig)
|
||||
self.app_context = self.app.app_context()
|
||||
self.app_context.push()
|
||||
db.create_all()
|
||||
|
Reference in New Issue
Block a user