Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 96ddf41

Browse files
committed
try to fix tests
1 parent 6b97581 commit 96ddf41

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/commands/component/tests/test_component.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class ComponentCommandsTest(TransactionTestCase):
1717
def setUp(self):
1818
self.owner = OwnerFactory(username="test-user")
1919
self.org = OwnerFactory(username="test-org", admins=[self.owner.pk])
20+
self.owner.organizations = [self.org.pk]
2021
self.repo = RepositoryFactory(author=self.org)
2122
self.command = ComponentCommands(self.owner, "github")
2223

core/commands/flag/tests/test_flag.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class FlagCommandsTest(TransactionTestCase):
1818
def setUp(self):
1919
self.owner = OwnerFactory(username="test-user")
2020
self.org = OwnerFactory(username="test-org", admins=[self.owner.pk])
21+
self.owner.organizations = [self.org.pk]
2122
self.repo = RepositoryFactory(author=self.org)
2223
self.command = FlagCommands(self.owner, "github")
2324
self.flag = RepositoryFlagFactory(repository=self.repo, flag_name="test-flag")

0 commit comments

Comments
 (0)