GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 47bd99...6fb05a )
by Alex
02:30
created

TestConfig.test_dev_config()   A

Complexity

Conditions 4

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 4
c 1
b 0
f 0
dl 0
loc 8
rs 9.2
1
#! ../env/bin/python
2
# -*- coding: utf-8 -*-
3
from sugarloaf import create_app
4
5
6
class TestConfig:
7
    def test_dev_config(self):
8
        """ Tests if the development config loads correctly """
9
10
        app = create_app('sugarloaf.settings.DevConfig')
11
12
        assert app.config['DEBUG'] is True
13
        assert 'postgresql' in app.config['SQLALCHEMY_DATABASE_URI']
14
        assert app.config['CACHE_TYPE'] == 'null'
15
16
    def test_test_config(self):
17
        """ Tests if the test config loads correctly """
18
19
        app = create_app('sugarloaf.settings.TestConfig')
20
21
        assert app.config['DEBUG'] is True
22
        assert app.config['SQLALCHEMY_ECHO'] is True
23
        assert app.config['CACHE_TYPE'] == 'null'
24
25
    def test_prod_config(self):
26
        """ Tests if the production config loads correctly """
27
28
        app = create_app('sugarloaf.settings.ProdConfig')
29
30
        assert 'postgresql' in app.config['SQLALCHEMY_DATABASE_URI']
31
        assert app.config['CACHE_TYPE'] == 'simple'
32