backend_tests.py 493 Bytes
import unittest
from pdc_config import TestConfig
from app import create_app


class BaseTestCase(unittest.TestCase):
    def setUp(self):
        # configure data base
        print("- - - - - - - - - - - - - - - - - - - - ")
        print("SETUP")
        self.app = create_app(TestConfig)
        self.app_context = self.app.app_context()
        self.app_context.push()

    def tearDown(self):
        self.app_context.pop()

    def test_always_true(self):
        self.assertTrue(True)