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

DemocracyClub / aggregator-api / b0bb8e02-944e-483a-b0b6-7d72659d0ade

03 Dec 2024 12:34PM UTC coverage: 76.041%. Remained the same
b0bb8e02-944e-483a-b0b6-7d72659d0ade

push

circleci

awdem
temporarily disable smoke tests

The changes in the previous commit  break the frontend but we still want to deploy so these tests need to be disabled temporarily

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

© 2026 Coveralls, Inc