• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-config-service / 4595663708

pending completion
4595663708

push

github

GitHub
Bump djangorestframework-stubs from 1.8.0 to 1.10.0 (#825)

940 of 942 relevant lines covered (99.79%)

1.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/chains/apps.py
1
from django.apps import AppConfig
1✔
2
from django.conf import settings
1✔
3
from django.core.exceptions import ImproperlyConfigured
1✔
4

5

6
def _validate_storage_setup() -> None:
1✔
7
    if (
1✔
8
        settings.DEFAULT_FILE_STORAGE == "storages.backends.s3boto3.S3Boto3Storage"
9
        and settings.AWS_ACCESS_KEY_ID is None
10
        and settings.AWS_SECRET_ACCESS_KEY is None
11
        and settings.AWS_STORAGE_BUCKET_NAME is None
12
    ):
13
        raise ImproperlyConfigured("Storage set to S3 but AWS is not configured")
1✔
14

15

16
class AppsConfig(AppConfig):
1✔
17
    default_auto_field = "django.db.models.BigAutoField"
1✔
18
    name = "chains"
1✔
19

20
    def ready(self) -> None:
1✔
21
        import chains.signals  # noqa: F401
1✔
22

23
        # This application depends on S3 configuration (if set)
24
        # so we validate if its django.conf.settings contains the required parameters
25
        _validate_storage_setup()
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc