Updated tests with the updated github stage names.

This commit is contained in:
Arnav Choudhury 2021-02-23 11:28:37 +05:30
parent db636c8e36
commit fbc9b89e0d

View File

@ -250,7 +250,7 @@ def test_github_invokes_linter_and_pytest(
github_config = yaml.safe_load(github_yml) github_config = yaml.safe_load(github_yml)
linter_present = False linter_present = False
for action_step in github_config["jobs"]["linter"]["steps"]: for action_step in github_config["jobs"]["linter"]["steps"]:
if action_step.get("run") == "linter": if action_step.get("uses", "NA").startswith("pre-commit"):
linter_present = True linter_present = True
assert linter_present assert linter_present