diff --git a/integration_tests/conftest.py b/integration_tests/conftest.py index 27a98b9e8..0827f8cab 100644 --- a/integration_tests/conftest.py +++ b/integration_tests/conftest.py @@ -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"] diff --git a/integration_tests/downloads/test.txt b/integration_tests/downloads/test.txt index 73e8f4ae6..23e3f1ab5 100644 --- a/integration_tests/downloads/test.txt +++ b/integration_tests/downloads/test.txt @@ -1 +1 @@ -This is a test file for the downloading purpose +This is a test file for the downloading purpose \ No newline at end of file diff --git a/integration_tests/test_file_download.py b/integration_tests/test_file_download.py index a6ebf30bf..2984ca54e 100644 --- a/integration_tests/test_file_download.py +++ b/integration_tests/test_file_download.py @@ -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"