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

DemocracyClub / WhoCanIVoteFor / 61342533-8c8d-43c7-9009-1bdb9a8967da

23 Apr 2026 02:22PM UTC coverage: 59.533% (-0.05%) from 59.584%
61342533-8c8d-43c7-9009-1bdb9a8967da

Pull #2360

circleci

chris48s
update po file
Pull Request #2360: errors fixed, final translations included

6 of 6 new or added lines in 1 file covered. (100.0%)

170 existing lines in 8 files now uncovered.

3060 of 5140 relevant lines covered (59.53%)

0.6 hits per line

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

0.0
/wcivf/lambda_handler.py
1
import json
×
2

3
import django
×
4
import sentry_sdk
×
5
from django.core.management import call_command
×
6

7

8
def handler(event, context):
×
9
    """Sample pure Lambda function
10

11
    Parameters
12
    ----------
13
    event: dict, required
14
        API Gateway Lambda Proxy Input Format
15

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

18
    context: object, required
19
        Lambda Context runtime methods and attributes
20

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

23
    Returns
24
    ------
25
    API Gateway Lambda Proxy Output Format: dict
26

27
        Return doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html
28
    """
29

UNCOV
30
    cmd = event["command"]
×
31
    args = event.get("args", [])
×
32

UNCOV
33
    sentry_sdk.set_context("event", event)
×
34

UNCOV
35
    django.setup()
×
36

UNCOV
37
    print(f"Calling {cmd} with args {args}")
×
38
    call_command(cmd, *args)
×
39

UNCOV
40
    arg_str = " ".join(args)
×
41
    return {
×
42
        "statusCode": 200,
43
        "body": json.dumps(
44
            {
45
                "message": f"{cmd} {arg_str} completed",
46
            }
47
        ),
48
    }
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