Fix another hardcoded linux test

This commit is contained in:
Joe Knapper 2025-09-25 12:04:39 +01:00
parent 49070d4163
commit 0e5517d45c

View file

@ -60,7 +60,7 @@ def test_add_static_file(filename, allow_cache, mocker):
# the wrapped function should return the file response
response = wrapped()
assert isinstance(response, FileResponse)
assert response.path == "bar/" + filename
assert response.path == os.path.join("bar", filename)
# The file response headers always have some standard data, and if the file is
# allowed to be cached it should also have the no_cache data
for key, value in serve_static_files.NO_CACHE_HEADERS.items():