Skip to content

Commit 3031151

Browse files
authored
Merge branch 'bugy:master' into master
2 parents c8c8a2b + 4225459 commit 3031151

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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):

src/web/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def set_extra_headers(self, path):
644644
encoded_filename = urllib.parse.quote(filename, encoding='utf-8')
645645
self.set_header('Content-Disposition', 'attachment; filename*=UTF-8\'\'' + encoded_filename + '')
646646

647-
@check_authorization
647+
@check_authorization_sync
648648
def validate_absolute_path(self, root, absolute_path):
649649
audit_name = get_audit_name_from_request(self)
650650
user_id = identify_user(self)

0 commit comments

Comments
 (0)