@@ -66,7 +66,7 @@ def _invoke(
66
66
):
67
67
runner = CliRunner (mix_stderr = False )
68
68
for index , configuration in enumerate (configurations ):
69
- configuration_paths [index ].write_text (configuration )
69
+ configuration_paths [index ].write_text (dedent ( configuration ) )
70
70
os .environ .update (
71
71
{
72
72
"OPS2DEB_VERBOSE" : "1" ,
@@ -794,7 +794,7 @@ def test_update__doesnt_update_blueprint_when_fetch_fails_for_one_architecture(
794
794
# Then
795
795
expected_error = "Failed to download http://testserver/1.1.1/great-app-404.tar.gz."
796
796
assert expected_error in result .stderr
797
- assert configuration_path .read_text () == configuration
797
+ assert configuration_path .read_text () == dedent ( configuration )
798
798
assert result .exit_code == 77
799
799
800
800
@@ -828,8 +828,8 @@ def test_update__skips_blueprints_when_skip_option_is_used(
828
828
829
829
# Then
830
830
assert result .exit_code == 0
831
- assert configuration_paths [0 ].read_text () == configuration_0
832
- assert configuration_paths [1 ].read_text () == configuration_1
831
+ assert configuration_paths [0 ].read_text () == dedent ( configuration_0 )
832
+ assert configuration_paths [1 ].read_text () == dedent ( configuration_1 )
833
833
834
834
835
835
def test_update___updates_only_blueprints_listed_with_only_option (
@@ -867,17 +867,17 @@ def test_update__should_not_produce_configuration_files_that_dont_pass_format_co
867
867
call_ops2deb ,
868
868
):
869
869
# Given
870
- configuration = """
870
+ configuration = """\
871
871
name: great-app
872
872
matrix:
873
873
versions:
874
- - 1.0.0
875
- - 1.0.1
876
- - 1.1.0
874
+ - 1.0.0
875
+ - 1.0.1
876
+ - 1.1.0
877
877
summary: great package
878
878
fetch: http://testserver/{{version}}/great-app.tar.gz
879
879
script:
880
- - mv great-app {{src}}/usr/bin/great-app
880
+ - mv great-app {{src}}/usr/bin/great-app
881
881
"""
882
882
883
883
# When
0 commit comments