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

gcivil-nyu-org / Wednesday-Fall2023-Team-4 / 352

07 Nov 2023 11:43PM UTC coverage: 60.833% (-8.6%) from 69.403%
352

Pull #129

travis-pro

web-flow
Merge de687035e into 23a9f9394
Pull Request #129: Tempprod branch to Master

28 of 125 new or added lines in 5 files covered. (22.4%)

4 existing lines in 1 file now uncovered.

292 of 480 relevant lines covered (60.83%)

0.61 hits per line

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

0.0
/rrapp/management/commands/createsu.py
1
# from django.contrib.auth.models import User
2
from django.core.management.base import BaseCommand
×
3
from django.contrib.auth import get_user_model
×
4

5
User = get_user_model()
×
6

7

8
class Command(BaseCommand):
×
NEW
9
    help = "Creates a superuser."
×
10

11
    def handle(self, *args, **options):
×
NEW
12
        if not User.objects.filter(username="admin").exists():
×
13
            User.objects.create_superuser(
×
14
                username="admin", password="complexpassword123", email="admin@nyu.edu"
15
            )
NEW
16
        print("Superuser has been created.")
×
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