From aa70935e1183ec38b6d015c1e07450f886ffa51c Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Fri, 31 Jan 2025 22:03:46 +0100 Subject: [PATCH] Clean up testfunctions.ipynb by removing redundant code Removed outdated and unused code snippets from testfunctions.ipynb to streamline the notebook. This improves readability and reduces clutter, ensuring the file contains only relevant and functional code samples. --- backend/tests/test_contact.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/test_contact.py b/backend/tests/test_contact.py index 52c6015..5d85a20 100644 --- a/backend/tests/test_contact.py +++ b/backend/tests/test_contact.py @@ -7,7 +7,7 @@ client = TestClient(app) def authenticate(): # Simulate login to obtain token response = client.post( - "/auth/token/login", json={"username": "testuser", "password": "testpass"} + "/auth/token/login", data={"username": "testuser", "password": "testpass"} ) assert response.status_code == 200 return response.json()["access_token"]