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

Commit 99a63e1

Browse files
committed
fix this suite, when using ttestcase need to have setup vs setupClass
1 parent 1bfc6d8 commit 99a63e1

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

graphql_api/tests/test_owner.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,8 @@
5959

6060

6161
class TestOwnerType(GraphQLTestHelper, TransactionTestCase):
62-
@classmethod
63-
def setUpClass(cls):
64-
super().setUpClass()
65-
mock_all_plans_and_tiers()
66-
6762
def setUp(self):
63+
mock_all_plans_and_tiers()
6864
self.account = AccountFactory()
6965
self.owner = OwnerFactory(
7066
username="codecov-user", service="github", account=self.account
@@ -1130,7 +1126,7 @@ def test_fetch_available_plans_is_enterprise_plan(self):
11301126
current_org = OwnerFactory(
11311127
username="random-plan-user",
11321128
service="github",
1133-
plan=PlanName.FREE_PLAN_NAME.value,
1129+
plan=PlanName.BASIC_PLAN_NAME.value,
11341130
)
11351131

11361132
query = """{
@@ -1160,15 +1156,6 @@ def test_fetch_available_plans_is_enterprise_plan(self):
11601156
"isFreePlan": True,
11611157
"isTrialPlan": False,
11621158
},
1163-
{
1164-
"value": "users-free",
1165-
"isEnterprisePlan": False,
1166-
"isProPlan": False,
1167-
"isTeamPlan": False,
1168-
"isSentryPlan": False,
1169-
"isFreePlan": True,
1170-
"isTrialPlan": False,
1171-
},
11721159
{
11731160
"value": "users-pr-inappm",
11741161
"isEnterprisePlan": False,

0 commit comments

Comments
 (0)