Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(test): fix tests on windows #400

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"