Refactor game ownership to support multiple organizations and update related logic

This commit is contained in:
Joakim Hellsén 2026-01-09 21:57:37 +01:00
commit 99e7b40535
No known key found for this signature in database
10 changed files with 99 additions and 64 deletions

View file

@ -27,8 +27,8 @@ class RSSFeedTestCase(TestCase):
slug="test-game",
name="Test Game",
display_name="Test Game",
owner=self.org,
)
self.game.owners.add(self.org)
self.campaign = DropCampaign.objects.create(
twitch_id="test-campaign-123",
name="Test Campaign",
@ -87,8 +87,8 @@ class RSSFeedTestCase(TestCase):
slug="other-game",
name="Other Game",
display_name="Other Game",
owner=self.org,
)
other_game.owners.add(self.org)
DropCampaign.objects.create(
twitch_id="other-campaign-123",
name="Other Campaign",
@ -120,8 +120,8 @@ class RSSFeedTestCase(TestCase):
slug="other-game-2",
name="Other Game 2",
display_name="Other Game 2",
owner=other_org,
)
other_game.owners.add(other_org)
DropCampaign.objects.create(
twitch_id="other-campaign-456",
name="Other Campaign 2",