| Total Complexity | 7 | 
| Total Lines | 15 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | # pylint: disable=no-self-use,misplaced-comparison-constant  | 
            ||
| 8 | class TestGetConfig:  | 
            ||
| 9 | |||
| 10 | def test_get_valid(self):  | 
            ||
| 11 |         config = get_config('prod') | 
            ||
| 12 | |||
| 13 | assert issubclass(config, Config)  | 
            ||
| 14 | assert 'prod' == config.ENV  | 
            ||
| 15 | |||
| 16 | def test_get_none(self):  | 
            ||
| 17 | with pytest.raises(AssertionError):  | 
            ||
| 18 |             get_config('') | 
            ||
| 19 | |||
| 20 | def test_get_unknown(self):  | 
            ||
| 21 | with pytest.raises(AssertionError):  | 
            ||
| 22 |             get_config('not_a_valid_config') | 
            ||
| 23 |