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

safe-global / safe-config-service / 8686775868

15 Apr 2024 09:30AM UTC coverage: 99.892% (+0.3%) from 99.629%
8686775868

Pull #987

github

iamacook
Keep `types-requests` version and update serializer types
Pull Request #987: Bump djangorestframework-stubs from 3.14.2 to 3.14.5

43 of 43 new or added lines in 2 files covered. (100.0%)

4620 of 4625 relevant lines covered (99.89%)

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 (
8
        settings.DEFAULT_FILE_STORAGE == "storages.backends.s3boto3.S3Boto3Storage"
1✔
9
        and settings.AWS_ACCESS_KEY_ID is None
1✔
10
        and settings.AWS_SECRET_ACCESS_KEY is None
1✔
11
        and settings.AWS_STORAGE_BUCKET_NAME is None
1✔
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