auth and rbac improves
This commit is contained in:
@@ -14,18 +14,9 @@ from orm.community import (
|
||||
Community,
|
||||
CommunityAuthor,
|
||||
CommunityFollower,
|
||||
get_user_roles_in_community,
|
||||
assign_role_to_user,
|
||||
remove_role_from_user
|
||||
)
|
||||
from storage.db import local_session
|
||||
|
||||
|
||||
# Используем общую фикстуру из conftest.py
|
||||
|
||||
|
||||
# Используем общую фикстуру из conftest.py
|
||||
|
||||
from rbac.api import assign_role_to_user, get_user_roles_in_community
|
||||
|
||||
@pytest.fixture
|
||||
def community_with_creator(db_session, test_users):
|
||||
|
||||
Reference in New Issue
Block a user