There was an error while loading. Please reload this page.
1 parent b2694eb commit ab41ff1Copy full SHA for ab41ff1
1 file changed
readthedocs/upload/tests/test_views.py
@@ -23,6 +23,7 @@
23
from readthedocs.doc_builder.exceptions import BuildMaxConcurrencyError
24
from readthedocs.doc_builder.exceptions import BuildUserError
25
from readthedocs.notifications.models import Notification
26
+from readthedocs.organizations.models import Organization
27
from readthedocs.projects.constants import PRIVATE
28
from readthedocs.projects.constants import PUBLIC
29
from readthedocs.projects.models import Feature
@@ -43,6 +44,11 @@ def setUp(self):
43
44
slug="project",
45
users=[self.user],
46
)
47
+ self.organization = get(
48
+ Organization,
49
+ owners=[self.user],
50
+ projects=[self.project],
51
+ )
52
self.feature = get(
53
Feature,
54
feature_id=Feature.ALLOW_DIRECT_ARTIFACTS_UPLOAD,
0 commit comments