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

safe-global / safe-config-service / 7696708933

29 Jan 2024 01:18PM UTC coverage: 99.889%. Remained the same
7696708933

Pull #1034

github

web-flow
Merge c0deed436 into e6f312afe
Pull Request #1034: Bump faker from 22.2.0 to 22.5.1

4494 of 4499 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