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

DemocracyClub / aggregator-api / 1786cb25-d9fb-4cf3-9b99-63ea1ce6585d

10 Oct 2024 09:52AM UTC coverage: 76.041%. Remained the same
1786cb25-d9fb-4cf3-9b99-63ea1ce6585d

Pull #548

circleci

web-flow
Bump cryptography from 42.0.5 to 43.0.1

Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.5 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.5...43.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #548: Bump cryptography from 42.0.5 to 43.0.1

1187 of 1561 relevant lines covered (76.04%)

0.76 hits per line

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

0.0
/frontend/lambda_awsgi.py
1
import json
×
2

3
import awsgi
×
4
import django
×
5
import sentry_sdk
×
6
from django.core.management import call_command
×
7
from django.core.wsgi import get_wsgi_application
×
8

9
application = get_wsgi_application()
×
10

11

12
def lambda_handler(event, context):
×
13
    return awsgi.response(
×
14
        application,
15
        event,
16
        context,
17
        base64_content_types={"image/png", "image/jpeg", "image/x-icon"},
18
    )
19

20

21
def management_handler(event, context):
×
22
    """Sample pure Lambda function
23

24
    Parameters
25
    ----------
26
    event: dict, required
27
        API Gateway Lambda Proxy Input Format
28

29
        Event doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-input-format
30

31
    context: object, required
32
        Lambda Context runtime methods and attributes
33

34
        Context doc: https://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html
35

36
    Returns
37
    ------
38
    API Gateway Lambda Proxy Output Format: dict
39

40
        Return doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html
41
    """
42

43
    cmd = event["command"]
×
44
    args = event.get("args", [])
×
45

46
    sentry_sdk.set_context("event", event)
×
47

48
    django.setup()
×
49

50
    call_command(cmd, *args)
×
51

52
    arg_str = " ".join(args)
×
53
    return {
×
54
        "statusCode": 200,
55
        "body": json.dumps(
56
            {
57
                "message": f"{cmd} {arg_str} completed",
58
            }
59
        ),
60
    }
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

© 2025 Coveralls, Inc