mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 09:15:41 +00:00
21 lines
502 B
Python
21 lines
502 B
Python
from app import create_app, db
|
|
from flask import current_app
|
|
from tests import TestConfig
|
|
import unittest
|
|
|
|
|
|
class BasicsTestCase(unittest.TestCase):
|
|
def setUp(self):
|
|
self.app = create_app(TestConfig)
|
|
self.app_context = self.app.app_context()
|
|
self.app_context.push()
|
|
db.create_all()
|
|
|
|
def tearDown(self):
|
|
db.session.remove()
|
|
db.drop_all()
|
|
self.app_context.pop()
|
|
|
|
def test_app_exists(self):
|
|
self.assertFalse(current_app is None)
|