Skip to content

Commit 3687c37

Browse files
authored
Merge pull request #9233 from readthedocs/fix-tests-com
2 parents 30f891f + 5117846 commit 3687c37

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

readthedocs/projects/tests/test_domain_views.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from readthedocs.organizations.models import Organization
77
from readthedocs.projects.models import Domain, Project
8+
from readthedocs.subscriptions.models import Plan, PlanFeature, Subscription
89

910

1011
@override_settings(RTD_ALLOW_ORGANIZATIONS=False)
@@ -101,3 +102,17 @@ def setUp(self):
101102
self.org = get(
102103
Organization, owners=[self.user], projects=[self.project, self.subproject]
103104
)
105+
self.plan = get(
106+
Plan,
107+
published=True,
108+
)
109+
self.subscription = get(
110+
Subscription,
111+
plan=self.plan,
112+
organization=self.org,
113+
)
114+
self.feature = get(
115+
PlanFeature,
116+
plan=self.plan,
117+
feature_type=PlanFeature.TYPE_CNAME,
118+
)

0 commit comments

Comments
 (0)