Skip to content

Commit

Permalink
fix(test): fix tests on windows (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineRR authored Feb 10, 2023
1 parent d3f5c34 commit 2f78cfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ def env_file():
env_path.write_text(CONTENT)
yield
env_path.unlink()
os.unsetenv("ROBYN_PORT")
os.unsetenv("ROBYN_URL")
del os.environ["ROBYN_PORT"]
del os.environ["ROBYN_URL"]
2 changes: 1 addition & 1 deletion integration_tests/downloads/test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This is a test file for the downloading purpose
This is a test file for the downloading purpose
2 changes: 1 addition & 1 deletion integration_tests/test_file_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
def test_file_download(function_type: str, session):
r = get(f"/{function_type}/file/download")
assert r.headers["Content-Disposition"] == "attachment"
assert r.text == "This is a test file for the downloading purpose\n"
assert r.text == "This is a test file for the downloading purpose"

0 comments on commit 2f78cfb

Please sign in to comment.