Skip to content

Commit 7623741

Browse files
committed
Store the module name in the test metadata
1 parent cfbef56 commit 7623741

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,15 @@ def pytest_collection_modifyitems(config, items):
120120
mark.skip(reason="disabled via --disable-data-dependent-shapes")
121121
)
122122
break
123-
# skip if test not appropiate for CI
123+
# skip if test not appropriate for CI
124124
if ci:
125125
ci_mark = next((m for m in markers if m.name == "ci"), None)
126126
if ci_mark is None:
127127
item.add_marker(mark.skip(reason="disabled via --ci"))
128+
129+
@mark.optionalhook
130+
def pytest_metadata(metadata):
131+
"""
132+
Additional metadata for --json-report.
133+
"""
134+
metadata['array_api_tests_module'] = xp.mod_name

0 commit comments

Comments
 (0)