| Total Complexity | 9 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # pylint: disable=no-self-use |
||
| 8 | class TestCreateApp: |
||
| 9 | |||
| 10 | def test_prod(self): |
||
| 11 | _app = factory.create_app(settings.ProdConfig) |
||
| 12 | |||
| 13 | assert False is _app.config['DEBUG'] |
||
| 14 | assert False is _app.config['TESTING'] |
||
| 15 | |||
| 16 | def test_test(self): |
||
| 17 | _app = factory.create_app(settings.TestConfig) |
||
| 18 | |||
| 19 | assert True is _app.config['DEBUG'] |
||
| 20 | assert True is _app.config['TESTING'] |
||
| 21 | |||
| 22 | def test_dev(self): |
||
| 23 | _app = factory.create_app(settings.DevConfig) |
||
| 24 | |||
| 25 | assert True is _app.config['DEBUG'] |
||
| 26 | assert False is _app.config['TESTING'] |
||
| 27 |