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

tjcsl / tin / 11766501715

10 Nov 2024 03:49PM UTC coverage: 54.923% (+0.1%) from 54.79%
11766501715

Pull #86

github

web-flow
Merge dc1dc32b2 into 6a43c847c
Pull Request #86: Improve instructions for dev env

403 of 895 branches covered (45.03%)

Branch coverage included in aggregate %.

26 of 43 new or added lines in 6 files covered. (60.47%)

13 existing lines in 2 files now uncovered.

1516 of 2599 relevant lines covered (58.33%)

0.58 hits per line

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

89.47
/tin/apps/users/management/commands/create_debug_users.py
1
from __future__ import annotations
1✔
2

3
from getpass import getpass
1✔
4

5
from django.core.management.base import BaseCommand, no_translations
1✔
6

7
import tin.tests.create_users as users
1✔
8

9

10
class Command(BaseCommand):
1✔
11
    help = "Create users for debugging"
1✔
12

13
    def add_arguments(self, parser):
1✔
14
        parser.add_argument("--noinput", action="store_true", help="Do not ask for password")
1✔
15
        parser.add_argument("--force", action="store_true", help="Force creation of users")
1✔
16

17
    @no_translations
1✔
18
    def handle(self, *args, **options):
1✔
19
        if not options["noinput"]:
1!
NEW
20
            pwd = getpass("Enter password for all users: ")
×
21
        else:
22
            pwd = "jasongrace"
1✔
23

24
        users.add_users_to_database(
1✔
25
            password=pwd,
26
            verbose=options["verbosity"] > 0,
27
            force=options["force"],
28
        )
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