mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
* fix #967 and test error to catch * add admin tests
This commit is contained in:
parent
c617251f4c
commit
14cc541f7a
5 changed files with 94 additions and 54 deletions
|
@ -1,11 +1,11 @@
|
|||
import json
|
||||
|
||||
import requests
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from .app_routes import AppRoutes
|
||||
|
||||
|
||||
def login(form_data, api_client: requests, api_routes: AppRoutes):
|
||||
def login(form_data, api_client: TestClient, api_routes: AppRoutes):
|
||||
response = api_client.post(api_routes.auth_token, form_data)
|
||||
assert response.status_code == 200
|
||||
token = json.loads(response.text).get("access_token")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue