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.
This commit is contained in:
GotthardG 2025-01-31 21:59:52 +01:00
parent 08667f792a
commit 590f36cd54

View File

@ -7,7 +7,7 @@ client = TestClient(app)
def authenticate(): def authenticate():
# Simulate login to obtain token # Simulate login to obtain token
response = client.post( response = client.post(
"/auth/login", json={"username": "testuser", "password": "testpass"} "/auth/token/login", json={"username": "testuser", "password": "testpass"}
) )
assert response.status_code == 200 assert response.status_code == 200
return response.json()["access_token"] return response.json()["access_token"]