From 34cb23bc6ed4df0e15bba72f2efd7fff1f3c1914 Mon Sep 17 00:00:00 2001 From: Paul Pfeister Date: Sun, 14 Sep 2025 01:36:21 -0400 Subject: [PATCH] test: itemize f+/f- --- pytest.ini | 2 ++ tests/test_validate_targets.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pytest.ini b/pytest.ini index e05d3088..ce1af84e 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,3 +3,5 @@ addopts = --strict-markers -m "not validate_targets" markers = online: mark tests are requiring internet access. validate_targets: mark tests for sweeping manifest validation (sends many requests). + validate_targets_fp: validate_targets, false positive tests only. + validate_targets_fn: validate_targets, false negative tests only. diff --git a/tests/test_validate_targets.py b/tests/test_validate_targets.py index 5f392543..42b5a012 100644 --- a/tests/test_validate_targets.py +++ b/tests/test_validate_targets.py @@ -58,6 +58,7 @@ def false_negative_check(sites_info: dict[str, dict[str, str]], site: str) -> Qu @pytest.mark.online class Test_All_Targets: + @pytest.mark.validate_targets_fp def test_manifest_false_pos(self, chunked_sites: dict[str, dict[str, str]]): """Iterate through all sites in the manifest to discover possible false-positive inducting targets.""" pattern: str @@ -69,6 +70,7 @@ class Test_All_Targets: result: QueryStatus = false_positive_check(chunked_sites, site, pattern) assert result is QueryStatus.AVAILABLE, f"{site} produced false positive with pattern {pattern}, result was {result}" + @pytest.mark.validate_targets_fn def test_manifest_false_neg(self, chunked_sites: dict[str, dict[str, str]]): """Iterate through all sites in the manifest to discover possible false-negative inducting targets.""" for site in chunked_sites: