Fixed the black template failing issue. Had to replace single quotes with double quotes

This commit is contained in:
Arnav Choudhury 2020-09-19 03:54:36 +05:30
parent de2de6a90d
commit fb410fe5ca

View File

@ -250,13 +250,13 @@ def test_github_invokes_flake8_and_pytest(
github_config = yaml.safe_load(github_yml) github_config = yaml.safe_load(github_yml)
flake8_present = False flake8_present = False
for action_step in github_config["jobs"]["flake8"]["steps"]: for action_step in github_config["jobs"]["flake8"]["steps"]:
if action_step.get('run') == 'flake8': if action_step.get("run") == "flake8":
flake8_present = True flake8_present = True
assert flake8_present assert flake8_present
expected_test_script_present = False expected_test_script_present = False
for action_step in github_config["jobs"]["pytest"]["steps"]: for action_step in github_config["jobs"]["pytest"]["steps"]:
if action_step.get('run') == expected_test_script: if action_step.get("run") == expected_test_script:
expected_test_script_present = True expected_test_script_present = True
assert expected_test_script_present assert expected_test_script_present
except yaml.YAMLError as e: except yaml.YAMLError as e: