Skip to content

Commit 3c60c4f

Browse files
authored
fix(pytest): add the parametrize_by_fork marker to the ini config (#1069)
This fixes warning of the type: ``` ./tests/cancun/eip4844_blobs/test_blob_txs.py:373: PytestUnknownMarkWarning: Unknown pytest.mark.parametrize_by_fork - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.parametrize_by_fork ```
1 parent 943e8de commit 3c60c4f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pytest_plugins/forks/forks.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,13 @@ def pytest_configure(config: pytest.Config):
405405
"markers",
406406
"valid_until(fork): specifies until which fork a test case is valid",
407407
)
408-
408+
config.addinivalue_line(
409+
"markers",
410+
(
411+
"parametrize_by_fork(names, values_fn): parametrize a test case by fork using the "
412+
"specified names and values returned by the function values_fn(fork)"
413+
),
414+
)
409415
for d in fork_covariant_decorators:
410416
config.addinivalue_line("markers", f"{d.marker_name}: {d.description}")
411417

0 commit comments

Comments
 (0)