Celery wrapper for creating a user.

This commit is contained in:
dandds
2020-02-02 13:58:41 -05:00
parent b1c6dd5ad0
commit 6b8d9d1d65
8 changed files with 154 additions and 105 deletions

View File

@@ -153,3 +153,12 @@ def test_get_pending_creation():
expected_ids = [[role_one.id, role_two.id], [role_three.id], [role_four.id]]
# Sort them to produce the same order.
assert sorted(app_ids) == sorted(expected_ids)
def test_get_many():
ar1 = ApplicationRoleFactory.create()
ar2 = ApplicationRoleFactory.create()
ApplicationRoleFactory.create()
result = ApplicationRoles.get_many([ar1.id, ar2.id])
assert result == [ar1, ar2]