Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy committed Dec 4, 2024
1 parent 15a003d commit 913ae33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reusable_workflows/tests/test_repo_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def test_get_approved_files_config_fails(download_gh_file):
get_approved_files_config(repo)

assert (
str(exc.value)
== f"No config file found. Make sure you have a file saved at {BOT_APPROVED_FILES_PATH}"
# fmt: off
str(exc.value) == f"No config file found. Make sure you have a file saved at {BOT_APPROVED_FILES_PATH}"
)


Expand Down Expand Up @@ -112,7 +112,7 @@ def test_pr_is_blocked_false(gh_login, get_approved_files_config, get_changed_fi

blocked = pr_is_blocked(env_vars)

assert blocked == False
assert blocked is False
get_changed_files.assert_called_once_with("base", "head")
get_approved_files_config.assert_called_once_with(repo)

Expand All @@ -139,7 +139,7 @@ def test_pr_is_blocked_true(gh_login, get_approved_files_config, get_changed_fil

blocked = pr_is_blocked(env_vars)

assert blocked == True
assert blocked is True
get_changed_files.assert_called_once_with("base", "head")
get_approved_files_config.assert_called_once_with(repo)

Expand Down

0 comments on commit 913ae33

Please sign in to comment.