mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-02 02:40:35 +00:00
Simplify Config setup and move some functions to dedicated files
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
import unittest
|
||||
from flask import current_app
|
||||
from app import create_app, db
|
||||
from flask import current_app
|
||||
from . import TestConfig
|
||||
import unittest
|
||||
|
||||
|
||||
class BasicsTestCase(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