Passed
Push — master ( 4645d0...91d748 )
by Andreas
01:08 queued 12s
created

tests.test_CMS.test_getconfig()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 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'