fix: Fix mercury extractor test

This commit is contained in:
Cristian 2020-09-23 10:34:05 -05:00
parent 2bf496e7e9
commit 46b9e3d536
7 changed files with 79 additions and 108 deletions
tests/mock_server

View file

@ -10,6 +10,12 @@ def index():
@route("/static/<filename>")
def static_path(filename):
template_path = abspath(getcwd()) / Path("tests/mock_server/templates")
response = static_file(filename, root=template_path)
return response
@route("/static_no_content_type/<filename>")
def static_no_content_type(filename):
template_path = abspath(getcwd()) / Path("tests/mock_server/templates")
response = static_file(filename, root=template_path)
response.set_header("Content-Type", "")