Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #663 from cdosborn/fix-reference-to-deleted-model
Browse files Browse the repository at this point in the history
Remove reference to non-existent Allocation model
  • Loading branch information
cdosborn authored Sep 7, 2018
2 parents 9297e08 + d98ec0d commit 3587ea5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
for Core objects
"""
from core.models import (
Allocation, Application, ApplicationVersion,
Application, ApplicationVersion,
AtmosphereUser, Group,
Identity, IdentityMembership,
Instance, InstanceSource, InstanceStatusHistory,
Expand Down Expand Up @@ -45,10 +45,8 @@ def _new_mock_identity_member(username, provider):
created_by=mock_user,
quota=mock_quota,
provider=provider)[0]
mock_allocation = Allocation.default_allocation()
mock_identity_member = IdentityMembership.objects.get_or_create(
identity=mock_identity, member=mock_group,
allocation=mock_allocation)[0]
identity=mock_identity, member=mock_group)[0]
return mock_identity_member


Expand Down

0 comments on commit 3587ea5

Please sign in to comment.