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

DemocracyClub / WhoCanIVoteFor / 2566be69-ee08-40fa-9d01-64f6dcf41a7b

22 Apr 2026 09:28AM UTC coverage: 59.464% (+0.02%) from 59.444%
2566be69-ee08-40fa-9d01-64f6dcf41a7b

Pull #1841

circleci

GeoWill
Add flexible stations to front end
Pull Request #1841: Development

5 of 18 new or added lines in 2 files covered. (27.78%)

109 existing lines in 5 files now uncovered.

3060 of 5146 relevant lines covered (59.46%)

0.59 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