mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
Create separate `tests/` folder for all tests. This will also simplify not copying tests code into the Docker image.
15 lines
366 B
Python
15 lines
366 B
Python
from handler.auth.constants import EDIT_SCOPES, FULL_SCOPES, WRITE_SCOPES
|
|
from models.user import User
|
|
|
|
|
|
def test_admin(admin_user: User):
|
|
assert admin_user.oauth_scopes == FULL_SCOPES
|
|
|
|
|
|
def test_editor(editor_user: User):
|
|
assert editor_user.oauth_scopes == EDIT_SCOPES
|
|
|
|
|
|
def test_user(viewer_user: User):
|
|
assert viewer_user.oauth_scopes == WRITE_SCOPES
|