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:
parent
e852ac3185
commit
08667f792a
@ -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": "securepassword"}
|
"/auth/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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user