mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
chore: drop-apscheduler (#1152)
* rewrite interval timer * drop apscheduler * fix type annotations
This commit is contained in:
parent
4f55020a58
commit
045798e959
11 changed files with 117 additions and 220 deletions
7
tests/fixtures/fixture_users.py
vendored
7
tests/fixtures/fixture_users.py
vendored
|
@ -1,6 +1,5 @@
|
|||
import json
|
||||
|
||||
import requests
|
||||
from pytest import fixture
|
||||
from starlette.testclient import TestClient
|
||||
|
||||
|
@ -8,7 +7,7 @@ from tests import utils
|
|||
from tests.utils.factories import random_string
|
||||
|
||||
|
||||
def build_unique_user(group: str, api_client: requests) -> utils.TestUser:
|
||||
def build_unique_user(group: str, api_client: TestClient) -> utils.TestUser:
|
||||
api_routes = utils.AppRoutes()
|
||||
group = group or random_string(12)
|
||||
|
||||
|
@ -103,7 +102,7 @@ def unique_user(api_client: TestClient, api_routes: utils.AppRoutes):
|
|||
|
||||
|
||||
@fixture(scope="module")
|
||||
def user_tuple(admin_token, api_client: requests, api_routes: utils.AppRoutes) -> tuple[utils.TestUser]:
|
||||
def user_tuple(admin_token, api_client: TestClient, api_routes: utils.AppRoutes) -> tuple[utils.TestUser]:
|
||||
group_name = utils.random_string()
|
||||
# Create the user
|
||||
create_data_1 = {
|
||||
|
@ -157,7 +156,7 @@ def user_tuple(admin_token, api_client: requests, api_routes: utils.AppRoutes) -
|
|||
|
||||
|
||||
@fixture(scope="session")
|
||||
def user_token(admin_token, api_client: requests, api_routes: utils.AppRoutes):
|
||||
def user_token(admin_token, api_client: TestClient, api_routes: utils.AppRoutes):
|
||||
# Create the user
|
||||
create_data = {
|
||||
"fullName": utils.random_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue