Blame view

tests/backend_tests.py 493 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
43934eae   hitier   New pytest config...
9
10
        print("- - - - - - - - - - - - - - - - - - - - ")
        print("SETUP")
506d2f02   hitier   Initialize unit t...
11
12
13
14
15
16
17
18
19
        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)