Remove indentation from test YAML

Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
This commit is contained in:
Lumir Balhar 2020-01-10 08:39:54 +01:00
parent 73cc89c15f
commit a436fb953c
1 changed files with 3 additions and 3 deletions

View File

@ -1772,13 +1772,13 @@ class ConfigTest(unittest.TestCase):
invalid_yaml_file = os.path.join(tmpdir, 'docker-compose.yml')
with open(invalid_yaml_file, mode="w") as invalid_yaml_file_fh:
invalid_yaml_file_fh.write("""
web:
this is bogus: ok: what
web:
this is bogus: ok: what
""")
with pytest.raises(ConfigurationError) as exc:
config.load_yaml(str(invalid_yaml_file))
assert 'line 3, column 36' in exc.exconly()
assert 'line 3, column 22' in exc.exconly()
def test_load_yaml_with_bom(self):
tmpdir = tempfile.mkdtemp('bom_yaml')