Skip to content

Commit

Permalink
test: adjusting job tags tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NiltonGMJunior committed May 16, 2024
1 parent 8bec2b9 commit 534c7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/contrib/actions/jobs/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_add_job_tags(test_settings):
add_job_tags.data = MagicMock()
add_job_tags.data.job.metadata = SettableDict({"tags": []})
add_job_tags.run_action()
assert add_job_tags.data.job.metadata["tags"] == ["add_foo", "add_bar"]
assert add_job_tags.data.job.metadata.get("tags") == ["add_foo", "add_bar"]


def test_remove_job_tags(test_settings):
Expand All @@ -58,4 +58,4 @@ def test_remove_job_tags(test_settings):
{"tags": ["remove_foo", "remove_bar"]}
)
remove_job_tags.run_action()
assert remove_job_tags.data.job.metadata["tags"] == []
assert remove_job_tags.data.job.metadata.get("tags") == []

0 comments on commit 534c7c2

Please sign in to comment.