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

DemocracyClub / UK-Polling-Stations / 59b19fef-6de2-484b-83e8-fe0e256ba1cb

31 May 2024 09:33AM UTC coverage: 71.051% (+0.02%) from 71.032%
59b19fef-6de2-484b-83e8-fe0e256ba1cb

push

circleci

symroe
Take ballot JSON from EE

This isn't ideal, but there are slight differences between the JSON we
have from WCIVF and the JSON we have from EE.

To save time, just take the EE JSON

We can resolve the other issues at a later date

1 of 5 new or added lines in 1 file covered. (20.0%)

2 existing lines in 1 file now uncovered.

3765 of 5299 relevant lines covered (71.05%)

0.71 hits per line

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

0.0
/polling_stations/apps/api/management/commands/create_user.py
1
from django.contrib.auth.models import User
×
2
from django.core.management.base import BaseCommand
×
3
from rest_framework.authtoken.models import Token
×
4

5

6
class Command(BaseCommand):
×
7
    def add_arguments(self, parser):
×
8
        parser.add_argument("-u", "--username", help="username", required=True)
×
9

10
        parser.add_argument("-p", "--password", help="password", required=True)
×
11

12
        parser.add_argument("-e", "--email", help="email", required=True)
×
13

14
    def handle(self, *args, **kwargs):
×
15
        user = User.objects.create_user(
×
16
            kwargs["username"], kwargs["email"], kwargs["password"]
17
        )
18
        token = Token.objects.create(user=user)
×
19
        print(token.key)
×
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