Skip to content

Commit

Permalink
BE: Fix consumer test and clean up invites
Browse files Browse the repository at this point in the history
This would cause other tests to crash that rely on userinvite counts to
be constant
  • Loading branch information
justuswilhelm committed Feb 22, 2024
1 parent 7943d4a commit a83c542
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/projectify/workspace/test/test_consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
customer_activate_subscription,
)
from projectify.user.models import User
from projectify.user.models.user_invite import UserInvite
from projectify.user.services.internal import user_create

from .. import (
Expand Down Expand Up @@ -355,6 +356,9 @@ async def test_workspace_user_life_cycle(
# workspace is deleted
await clean_up_communicator(workspace_communicator)

# Clean up user invite
await UserInvite.objects.all().adelete()


class TestWorkspaceBoard:
"""Test consumer behavior for WorkspaceBoard changes."""
Expand Down

0 comments on commit a83c542

Please sign in to comment.