Remove has_member function from application model

This commit is contained in:
Montana
2019-04-30 10:27:15 -04:00
parent a99c795319
commit 94e3dc637a
4 changed files with 3 additions and 19 deletions

View File

@@ -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)