Skip to content

Commit a5d1c8e

Browse files
committed
adds non-regression tests
Signed-off-by: Olla Gabriele <[email protected]>
1 parent 593cbd0 commit a5d1c8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/test_settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import pathlib
55

66
import pytest
7-
87
from coverage_comment import settings
98

109

@@ -127,6 +126,8 @@ def _(**kwargs):
127126
"github_ref, github_pr_number",
128127
[
129128
("foo", None),
129+
("refs/heads/branch-with-pull", None),
130+
("refs/tags/tag-with-pull", None),
130131
("refs/pull/2/merge", 2),
131132
],
132133
)
@@ -138,6 +139,8 @@ def test_config__GITHUB_PR_NUMBER(config, github_ref, github_pr_number):
138139
"github_ref, github_branch_name",
139140
[
140141
("refs/pull/2/merge", None),
142+
("refs/pull/2/head", None),
143+
("refs/tags/tag-with-heads", None),
141144
("refs/heads/a/b", "a/b"),
142145
],
143146
)

0 commit comments

Comments
 (0)