From 979367abbfb839dcb1b2f5d26693ff999c87d60a Mon Sep 17 00:00:00 2001 From: Stav Shamir Date: Tue, 28 Jan 2020 08:25:24 +0200 Subject: [PATCH] Run `make format` --- features/steps/export_steps.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/features/steps/export_steps.py b/features/steps/export_steps.py index 19503707..e5254b06 100644 --- a/features/steps/export_steps.py +++ b/features/steps/export_steps.py @@ -53,7 +53,7 @@ def check_json_output_path(context, path, value): assert struct == value, struct -@then('the output should be a valid XML string') +@then("the output should be a valid XML string") def assert_valid_xml_string(context): output = context.stdout_capture.getvalue() xml_tree = ElementTree.fromstring(output) @@ -106,7 +106,7 @@ def assert_exported_yaml_file_content(context, file_path): actual_content = f.read().strip().splitlines() for actual_line, expected_line in zip(actual_content, expected_content): - if actual_line.startswith('tags: ') and expected_line.startswith('tags: '): + if actual_line.startswith("tags: ") and expected_line.startswith("tags: "): assert_equal_tags_ignoring_order(actual_line, expected_line) else: assert actual_line.strip() == expected_line.strip(), [ @@ -116,6 +116,8 @@ def assert_exported_yaml_file_content(context, file_path): def assert_equal_tags_ignoring_order(actual_line, expected_line): - actual_tags = set(tag.strip() for tag in actual_line[len('tags: '):].split(',')) - expected_tags = set(tag.strip() for tag in expected_line[len('tags: '):].split(',')) + actual_tags = set(tag.strip() for tag in actual_line[len("tags: ") :].split(",")) + expected_tags = set( + tag.strip() for tag in expected_line[len("tags: ") :].split(",") + ) assert actual_tags == expected_tags, [actual_tags, expected_tags]