browser-go-api/tests/test_config.py

14 lines
371 B
Python
Raw Permalink Normal View History

2019-10-04 18:24:11 +00:00
import unittest
from flask import current_app
from flask_testing import TestCase
from ..app import app
class TestDevelopmentConfig(TestCase):
def create_app(self):
app.config.from_object('browser-go-api.config.DevelopmentConfig')
return app
def test_app_is_development(self):
self.assertFalse(app.config['SECRET_KEY'] is 'my_precious')