Skip to content

Commit

Permalink
Merge pull request #9233 from readthedocs/fix-tests-com
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher authored May 16, 2022
2 parents 30f891f + 5117846 commit 3687c37
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readthedocs/projects/tests/test_domain_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from readthedocs.organizations.models import Organization
from readthedocs.projects.models import Domain, Project
from readthedocs.subscriptions.models import Plan, PlanFeature, Subscription


@override_settings(RTD_ALLOW_ORGANIZATIONS=False)
Expand Down Expand Up @@ -101,3 +102,17 @@ def setUp(self):
self.org = get(
Organization, owners=[self.user], projects=[self.project, self.subproject]
)
self.plan = get(
Plan,
published=True,
)
self.subscription = get(
Subscription,
plan=self.plan,
organization=self.org,
)
self.feature = get(
PlanFeature,
plan=self.plan,
feature_type=PlanFeature.TYPE_CNAME,
)

0 comments on commit 3687c37

Please sign in to comment.