Skip to content

Commit

Permalink
fixed backward incompatibility in pytest-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Jul 3, 2023
1 parent d65eb5d commit 7d03fdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/e2e_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def pytest_configure(config):
with open(CONFIG_PATH) as config_file:
data = json.load(config_file)
for config_item in data.keys():
config._metadata[str(config_item)] = str(data[config_item])
# https://github.com/pytest-dev/pytest-metadata/issues/70
from pytest_metadata.plugin import metadata_key
config.stash[metadata_key][str(config_item)] = str(data[config_item])


def pytest_html_report_title(report):
Expand Down

0 comments on commit 7d03fdc

Please sign in to comment.