Skip to content

Commit 35940e7

Browse files
committed
fix: ignore exclusions list on parameterization for false positive tests
1 parent 524415b commit 35940e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import pytest
55
from sherlock_project.sites import SitesInformation
66

7-
def fetch_local_manifest() -> dict[str, dict[str, str]]:
8-
sites_obj = SitesInformation(data_file_path=os.path.join(os.path.dirname(__file__), "../sherlock_project/resources/data.json"))
7+
def fetch_local_manifest(honor_exclusions: bool = True) -> dict[str, dict[str, str]]:
8+
sites_obj = SitesInformation(data_file_path=os.path.join(os.path.dirname(__file__), "../sherlock_project/resources/data.json"), honor_exclusions=honor_exclusions)
99
sites_iterable = {site.name: site.information for site in sites_obj}
1010
return sites_iterable
1111

@@ -27,7 +27,7 @@ def remote_schema():
2727

2828
def pytest_generate_tests(metafunc):
2929
if "chunked_sites" in metafunc.fixturenames:
30-
sites_info = fetch_local_manifest()
30+
sites_info = fetch_local_manifest(honor_exclusions=False)
3131
params = [{name: data} for name, data in sites_info.items()]
3232
ids = list(sites_info.keys())
3333
metafunc.parametrize("chunked_sites", params, ids=ids)

0 commit comments

Comments
 (0)