Remove has_member function from application model
This commit is contained in:
@@ -39,16 +39,3 @@ def test_audit_event_for_application_deletion(session):
|
||||
)
|
||||
assert update_event.changed_state.get("deleted")
|
||||
assert update_event.changed_state["deleted"] == [False, True]
|
||||
|
||||
|
||||
def test_has_app_member():
|
||||
user = UserFactory.create()
|
||||
app = ApplicationFactory.create()
|
||||
ApplicationRoleFactory.create(user=user, application=app)
|
||||
assert app.has_member(user.id)
|
||||
|
||||
|
||||
def test_does_not_have_app_member():
|
||||
user = UserFactory.create()
|
||||
app = ApplicationFactory.create()
|
||||
assert not app.has_member(user.id)
|
||||
|
@@ -192,7 +192,7 @@ def test_check_users_are_in_application():
|
||||
for user in [app_user_1, app_user_2, app_user_3]:
|
||||
ApplicationRoleFactory.create(user=user, application=application)
|
||||
|
||||
user_ids = [app_user_1.id, app_user_2.id, app_user_3.id]
|
||||
user_ids = [str(app_user_1.id), str(app_user_2.id), str(app_user_3.id)]
|
||||
assert check_users_are_in_application(user_ids, application)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user