mirror of
https://github.com/docker/compose.git
synced 2025-07-03 11:54:27 +02:00
Remove indentation from test YAML
Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
This commit is contained in:
parent
73cc89c15f
commit
a436fb953c
@ -1772,13 +1772,13 @@ class ConfigTest(unittest.TestCase):
|
|||||||
invalid_yaml_file = os.path.join(tmpdir, 'docker-compose.yml')
|
invalid_yaml_file = os.path.join(tmpdir, 'docker-compose.yml')
|
||||||
with open(invalid_yaml_file, mode="w") as invalid_yaml_file_fh:
|
with open(invalid_yaml_file, mode="w") as invalid_yaml_file_fh:
|
||||||
invalid_yaml_file_fh.write("""
|
invalid_yaml_file_fh.write("""
|
||||||
web:
|
web:
|
||||||
this is bogus: ok: what
|
this is bogus: ok: what
|
||||||
""")
|
""")
|
||||||
with pytest.raises(ConfigurationError) as exc:
|
with pytest.raises(ConfigurationError) as exc:
|
||||||
config.load_yaml(str(invalid_yaml_file))
|
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):
|
def test_load_yaml_with_bom(self):
|
||||||
tmpdir = tempfile.mkdtemp('bom_yaml')
|
tmpdir = tempfile.mkdtemp('bom_yaml')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user