forked from ungleich-public/cdist
Add helpers for cdist config/install integration. (#551)
Implement simple integration API.
This commit is contained in:
parent
feb221c5df
commit
136f2ecd87
8 changed files with 238 additions and 13 deletions
|
|
@ -236,9 +236,16 @@ class ConfigurationTestCase(test.CdistTestCase):
|
|||
x = cc.Configuration(None)
|
||||
args = argparse.Namespace()
|
||||
args.a = 'a'
|
||||
y = cc.Configuration()
|
||||
y = cc.Configuration(args)
|
||||
self.assertIs(x, y)
|
||||
|
||||
def test_non_singleton(self):
|
||||
x = cc.Configuration(None, singleton=False)
|
||||
args = argparse.Namespace()
|
||||
args.a = 'a'
|
||||
y = cc.Configuration(args, singleton=False)
|
||||
self.assertIsNot(x, y)
|
||||
|
||||
def test_read_config_file(self):
|
||||
config = cc.Configuration(None, env={}, config_files=())
|
||||
d = config._read_config_file(self.config_file)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue