mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
update user tests
This commit is contained in:
parent
a86340bd82
commit
4a2801b303
1 changed files with 18 additions and 2 deletions
|
@ -10,12 +10,28 @@ from tests.app_routes import AppRoutes
|
|||
|
||||
@fixture(scope="session")
|
||||
def default_user():
|
||||
return UserOut(id=1, fullName="Change Me", email="changeme@email.com", group="Home", admin=True, tokens=[])
|
||||
return UserOut(
|
||||
id=1,
|
||||
fullName="Change Me",
|
||||
username="Change Me",
|
||||
email="changeme@email.com",
|
||||
group="Home",
|
||||
admin=True,
|
||||
tokens=[],
|
||||
)
|
||||
|
||||
|
||||
@fixture(scope="session")
|
||||
def new_user():
|
||||
return UserOut(id=3, fullName="My New User", email="newuser@email.com", group="Home", admin=False, tokens=[])
|
||||
return UserOut(
|
||||
id=3,
|
||||
fullName="My New User",
|
||||
username="My New User",
|
||||
email="newuser@email.com",
|
||||
group="Home",
|
||||
admin=False,
|
||||
tokens=[],
|
||||
)
|
||||
|
||||
|
||||
def test_superuser_login(api_client: TestClient, api_routes: AppRoutes, token):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue