Skip to content

Commit 7d03fdc

Browse files
committed
fixed backward incompatibility in pytest-metadata
1 parent d65eb5d commit 7d03fdc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/e2e_tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def pytest_configure(config):
8383
with open(CONFIG_PATH) as config_file:
8484
data = json.load(config_file)
8585
for config_item in data.keys():
86-
config._metadata[str(config_item)] = str(data[config_item])
86+
# https://github.com/pytest-dev/pytest-metadata/issues/70
87+
from pytest_metadata.plugin import metadata_key
88+
config.stash[metadata_key][str(config_item)] = str(data[config_item])
8789

8890

8991
def pytest_html_report_title(report):

0 commit comments

Comments
 (0)