From a5d1c8e88ba860a34ae75dfc04c753fb3aae37ed Mon Sep 17 00:00:00 2001 From: Olla Gabriele Date: Thu, 6 Jun 2024 20:24:41 +0200 Subject: [PATCH] adds non-regression tests Signed-off-by: Olla Gabriele --- tests/unit/test_settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_settings.py b/tests/unit/test_settings.py index a335827f..f8c4ff66 100644 --- a/tests/unit/test_settings.py +++ b/tests/unit/test_settings.py @@ -4,7 +4,6 @@ import pathlib import pytest - from coverage_comment import settings @@ -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), ], ) @@ -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"), ], )