Total Complexity | 2 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import pytest |
||
2 | import os |
||
3 | from pathlib import Path |
||
4 | from CMS import getconfig |
||
5 | |||
6 | def test_getconfig(): |
||
7 | assert getconfig() != None, 'Config is empty' |
||
8 | |||
9 | def test_getconfig_locale_not_null(): |
||
10 | assert getconfig()['settings']['locale'] != None, 'Locale is not set' |