mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
set default password globally
This commit is contained in:
parent
1d0bdf7917
commit
e3f5421679
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ import json
|
|||
import requests
|
||||
from fastapi.testclient import TestClient
|
||||
from mealie.app import app
|
||||
from mealie.core.config import SQLITE_DIR
|
||||
from mealie.core.config import DEFAULT_PASSWORD, SQLITE_DIR
|
||||
from mealie.db.db_setup import generate_session, sql_global_init
|
||||
from mealie.db.init_db import init_db
|
||||
from pytest import fixture
|
||||
|
@ -44,7 +44,7 @@ def test_image():
|
|||
|
||||
@fixture(scope="session")
|
||||
def token(api_client: requests):
|
||||
form_data = {"username": "changeme@email.com", "password": "MyPassword"}
|
||||
form_data = {"username": "changeme@email.com", "password": DEFAULT_PASSWORD}
|
||||
response = api_client.post(TOKEN_URL, form_data)
|
||||
|
||||
token = json.loads(response.text).get("access_token")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue