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
08667f792a
commit
590f36cd54
@ -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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user