mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
lint
This commit is contained in:
parent
7c5eb79f0a
commit
9b90172cd3
3 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,4 @@
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
from django.contrib.auth import get_user_model
|
|
||||||
from django.utils import timezone
|
|
||||||
from registrar.models import User
|
from registrar.models import User
|
||||||
from ..backends import OpenIdConnectBackend # Adjust the import path based on your project structure
|
from ..backends import OpenIdConnectBackend # Adjust the import path based on your project structure
|
||||||
|
|
||||||
|
|
|
@ -71,10 +71,10 @@ class Command(BaseCommand):
|
||||||
======= DEBUG OUTPUT =======
|
======= DEBUG OUTPUT =======
|
||||||
Users who have a linked contact:
|
Users who have a linked contact:
|
||||||
{eligible_users}
|
{eligible_users}
|
||||||
|
|
||||||
Processed users (users who have a linked contact and a missing first or last name):
|
Processed users (users who have a linked contact and a missing first or last name):
|
||||||
{processed_users}
|
{processed_users}
|
||||||
|
|
||||||
===== SKIPPED CONTACTS =====
|
===== SKIPPED CONTACTS =====
|
||||||
{skipped_contacts}
|
{skipped_contacts}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ class Command(BaseCommand):
|
||||||
!!! ERROR: An exception occured in the
|
!!! ERROR: An exception occured in the
|
||||||
User table for the following user:
|
User table for the following user:
|
||||||
{contact.email} {contact.first_name} {contact.last_name}
|
{contact.email} {contact.first_name} {contact.last_name}
|
||||||
|
|
||||||
Exception is: {E}
|
Exception is: {E}
|
||||||
----------TERMINATING----------"""
|
----------TERMINATING----------"""
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,7 @@ from registrar.management.commands.copy_names_from_contacts_to_users import Comm
|
||||||
class TestDataUpdates(TestCase):
|
class TestDataUpdates(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
"""We cannot setup the user details because contacts will override the first and last names in its save method
|
"""We cannot setup the user details because contacts will override the first and last names in its save method
|
||||||
so we will initiate the users, setup the contacts and link them, and leave the rest of the setup for the test(s).
|
so we will initiate the users, setup the contacts and link them, and leave the rest of the setup to the test(s).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.user1 = User.objects.create(username="user1")
|
self.user1 = User.objects.create(username="user1")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue