Skip to content

Commit 06152b9

Browse files
committed
ammend test case for master as well as main
1 parent 35cfa3f commit 06152b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_changeset_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ def test_check_changeset_on_main_branch(
216216
result = cli_runner.invoke(cli, ["check-changeset"])
217217

218218
assert result.exit_code == 0
219-
assert "Skipping changeset check for branch: main" in result.output
219+
# Accept either main or master as the default branch
220+
assert ("Skipping changeset check for branch: main" in result.output or
221+
"Skipping changeset check for branch: master" in result.output)
220222

221223
def test_check_changeset_on_feature_branch_without_changeset(
222224
self, cli_runner: CliRunner, initialized_changeset_project: Path

0 commit comments

Comments
 (0)