<filename>tests/test_setup.py<gh_stars>0
import os

from flask import app

from census_rm_ops_ui.setup import create_app
from config import TestConfig
from tests import unittest_helper


def test_create_app():
    # Given
    app.testing = True
    os.environ['APP_SETTINGS'] = 'TestConfig'

    # When
    test_app = create_app()

    # Then
    # Check the app has been initialized with the given test config
    unittest_helper.assertEqual(test_app.config['CASE_API_URL'], TestConfig.CASE_API_URL)

<filename>tests/test_setup.py<gh_stars>0
import os

from flask import app

from census_rm_ops_ui.setup import create_app
from config import TestConfig
from tests import unittest_helper


def test_create_app():
    # Given
    app.testing = True
    os.environ['APP_SETTINGS'] = 'TestConfig'

    # When
    test_app = create_app()

    # Then
    # Check the app has been initialized with the given test config
    unittest_helper.assertEqual(test_app.config['CASE_API_URL'], TestConfig.CASE_API_URL)

# Given # When # Then # Check the app has been initialized with the given test config