Skip to content

Commit

Permalink
test: verify that commands are added to whiteboard
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Feb 23, 2023
1 parent e357be2 commit 5561444
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_bugmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,15 @@ def test_bugmon_pernosco_no_creds(browser_config, bugmon, build, caplog, mocker)
assert caplog.messages[-1] == "Pernosco creds required for submitting traces!"


def test_bugmon_add_command(bugmon):
"""Test that add_command updates the whiteboard"""
bugmon.bug.whiteboard = "[some-command]"
bugmon.add_command("bisected")
bugmon.add_command("confirmed")

assert bugmon.bug.whiteboard == "[some-command][bugmon:bisected,confirmed]"


@pytest.mark.parametrize("status", ["ASSIGNED", "NEW", "UNCONFIRMED", "REOPENED"])
def test_bugmon_needs_confirm_status(status, bugmon):
"""Test that bug is confirmed based on status"""
Expand Down

0 comments on commit 5561444

Please sign in to comment.