Passed
Push — master ( 00d837...bc5250 )
by Jace
49s
created

TestCreateApp   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 9
1
# pylint: disable=no-self-use
2
# pylint: disable=misplaced-comparison-constant
3
4
from memegen import factory
5
from memegen import settings
6
7
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