Skip to content

Commit

Permalink
adds non-regression tests
Browse files Browse the repository at this point in the history
Signed-off-by: Olla Gabriele <[email protected]>
  • Loading branch information
ollaw committed Jun 6, 2024
1 parent 593cbd0 commit a5d1c8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import pathlib

import pytest

from coverage_comment import settings


Expand Down Expand Up @@ -127,6 +126,8 @@ def _(**kwargs):
"github_ref, github_pr_number",
[
("foo", None),
("refs/heads/branch-with-pull", None),
("refs/tags/tag-with-pull", None),
("refs/pull/2/merge", 2),
],
)
Expand All @@ -138,6 +139,8 @@ def test_config__GITHUB_PR_NUMBER(config, github_ref, github_pr_number):
"github_ref, github_branch_name",
[
("refs/pull/2/merge", None),
("refs/pull/2/head", None),
("refs/tags/tag-with-heads", None),
("refs/heads/a/b", "a/b"),
],
)
Expand Down

0 comments on commit a5d1c8e

Please sign in to comment.