test_includehandler: Fix indention
pylint reports tests/test_includehandler.py:343:0: C0330: Wrong hanging indentation before block (add 4 spaces). 'x.yml': header.format(''' includes: ["y.yml", "z.yml"] ^ | (bad-continuation) tests/test_includehandler.py:345:0: C0330: Wrong hanging indentation before block (add 4 spaces). os.path.abspath('y.yml'): header.format(''' includes: ["z.yml"] ^ | (bad-continuation) tests/test_includehandler.py:347:0: C0330: Wrong hanging indentation before block (add 4 spaces). os.path.abspath('z.yml'): header.format(''' ^ | (bad-continuation) Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
This commit is contained in:
parent
f60a8b4e6d
commit
9fc8c7735c
@ -339,13 +339,15 @@ v3:
|
|||||||
# disable schema validation for this test:
|
# disable schema validation for this test:
|
||||||
monkeypatch.setattr(includehandler, 'CONFIGSCHEMA', {})
|
monkeypatch.setattr(includehandler, 'CONFIGSCHEMA', {})
|
||||||
header = self.__class__.header
|
header = self.__class__.header
|
||||||
with patch_open(includehandler, dictionary={
|
data = {'x.yml':
|
||||||
'x.yml': header.format(''' includes: ["y.yml", "z.yml"]
|
header.format(''' includes: ["y.yml", "z.yml"]
|
||||||
v: {v1: x, v2: x}'''),
|
v: {v1: x, v2: x}'''),
|
||||||
os.path.abspath('y.yml'): header.format(''' includes: ["z.yml"]
|
os.path.abspath('y.yml'):
|
||||||
|
header.format(''' includes: ["z.yml"]
|
||||||
v: {v2: y, v3: y, v5: y}'''),
|
v: {v2: y, v3: y, v5: y}'''),
|
||||||
os.path.abspath('z.yml'): header.format('''
|
os.path.abspath('z.yml'): header.format('''
|
||||||
v: {v3: z, v4: z}''')}):
|
v: {v3: z, v4: z}''')}
|
||||||
|
with patch_open(includehandler, dictionary=data):
|
||||||
ginc = includehandler.GlobalIncludes('x.yml')
|
ginc = includehandler.GlobalIncludes('x.yml')
|
||||||
config, _ = ginc.get_config()
|
config, _ = ginc.get_config()
|
||||||
keys = list(config['v'].keys())
|
keys = list(config['v'].keys())
|
||||||
|
Loading…
Reference in New Issue
Block a user