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

tests.test_CMS   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

2 Functions

Rating   Name   Duplication   Size   Complexity  
A test_getconfig() 0 2 1
A test_getconfig_locale_not_null() 0 2 1
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'