Skip to content

Commit

Permalink
Fix dotted test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Jul 31, 2022
1 parent e54ac3c commit 7e0b0de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_static.py
Expand Up @@ -605,10 +605,10 @@ def test_dotted_dir_ok(
app: Sanic, static_file_directory: str, double_dotted_directory_file: Path
):
app.static("/foo", static_file_directory)
double_dotted_directory_file = str(double_dotted_directory_file).lstrip(
static_file_directory
dot_relative_path = str(
double_dotted_directory_file.relative_to(static_file_directory)
)
_, response = app.test_client.get("/foo/" + double_dotted_directory_file)
_, response = app.test_client.get("/foo/" + dot_relative_path)
assert response.status == 200
assert response.body == b"DOT\n"

Expand Down

0 comments on commit 7e0b0de

Please sign in to comment.