Skip to content

Commit 60f0016

Browse files
committed
Black
1 parent 5ad812e commit 60f0016

File tree

6 files changed

+11
-19
lines changed

6 files changed

+11
-19
lines changed

readthedocs/builds/tests/test_build_queryset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
@pytest.mark.django_db
1010
class TestBuildQuerySet:
11-
1211
@pytest.fixture(autouse=True)
1312
def setup_method(self, settings):
1413
settings.RTD_ALL_FEATURES_ENABLED = True

readthedocs/organizations/tests/test_views.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313

1414
from readthedocs.audit.models import AuditLog
1515
from readthedocs.core.utils import slugify
16-
from readthedocs.organizations.models import (
17-
Organization,
18-
Team,
19-
TeamInvite,
20-
TeamMember,
21-
)
16+
from readthedocs.organizations.models import Organization, Team, TeamInvite, TeamMember
2217
from readthedocs.organizations.views import public as public_views
2318
from readthedocs.projects.models import Project
2419
from readthedocs.rtd_tests.base import RequestFactoryTestMixin

readthedocs/organizations/views/private.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ def _get_csv_data(self):
221221
def get_context_data(self, **kwargs):
222222
organization = self.get_organization()
223223
context = super().get_context_data(**kwargs)
224-
context['enabled'] = self._is_feature_enabled(organization)
225-
context['days_limit'] = self._get_retention_days_limit(organization)
226-
context['filter'] = self.filter
227-
context['AuditLog'] = AuditLog
224+
context["enabled"] = self._is_feature_enabled(organization)
225+
context["days_limit"] = self._get_retention_days_limit(organization)
226+
context["filter"] = self.filter
227+
context["AuditLog"] = AuditLog
228228
return context
229229

230230
def _get_start_date(self):

readthedocs/projects/querysets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def max_concurrent_builds(self, project):
114114
max_concurrent_organization = organization.max_concurrent_builds
115115

116116
return (
117-
project.max_concurrent_builds or
118-
max_concurrent_organization or
119-
PlanFeature.objects.get_feature_value(
117+
project.max_concurrent_builds
118+
or max_concurrent_organization
119+
or PlanFeature.objects.get_feature_value(
120120
project,
121121
type=PlanFeature.TYPE_CONCURRENT_BUILDS,
122122
default=settings.RTD_MAX_CONCURRENT_BUILDS,

readthedocs/projects/views/private.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
from readthedocs.search.models import SearchQuery
8080
from readthedocs.subscriptions.models import PlanFeature
8181

82-
8382
log = structlog.get_logger(__name__)
8483

8584

readthedocs/proxito/tests/base.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Copied from .org
22

3-
from readthedocs.projects.constants import SSL_STATUS_VALID
43
import django_dynamic_fixture as fixture
54
import pytest
65
from django.conf import settings
76
from django.contrib.auth.models import User
87
from django.core.files.storage import get_storage_class
98
from django.test import TestCase
109

11-
from readthedocs.projects.constants import PUBLIC
10+
from readthedocs.projects.constants import PUBLIC, SSL_STATUS_VALID
1211
from readthedocs.projects.models import Domain, Project
1312
from readthedocs.proxito.views import serve
1413

@@ -82,14 +81,14 @@ def setUp(self):
8281
self.domain = fixture.get(
8382
Domain,
8483
project=self.project,
85-
domain='docs1.example.com',
84+
domain="docs1.example.com",
8685
https=True,
8786
ssl_status=SSL_STATUS_VALID,
8887
)
8988
self.domain2 = fixture.get(
9089
Domain,
9190
project=self.project,
92-
domain='docs2.example.com',
91+
domain="docs2.example.com",
9392
https=True,
9493
ssl_status=SSL_STATUS_VALID,
9594
)

0 commit comments

Comments
 (0)