Blame view

tests/backend_tests.py 412 Bytes
506d2f02   hitier   Initialize unit t...
1
2
3
4
5
6
7
8
import unittest
from pdc_config import TestConfig
from app import create_app


class BaseTestCase(unittest.TestCase):
    def setUp(self):
        # configure data base
506d2f02   hitier   Initialize unit t...
9
10
11
12
13
14
15
16
17
        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)