23 lines
354 B
Python
23 lines
354 B
Python
import pytest
|
|
|
|
from configurator.config import Config
|
|
|
|
|
|
def config_dict():
|
|
return {
|
|
'kscfg': None,
|
|
'parent': {
|
|
'child': 1
|
|
}
|
|
}
|
|
|
|
|
|
def test_config():
|
|
config = Config(config_dict())
|
|
assert config.kscfg is None
|
|
|
|
|
|
def test_config_sub():
|
|
config = Config(config_dict())
|
|
assert config.parent.child == 1
|