This commit is contained in:
Rachid Mrad 2023-12-12 20:26:46 -05:00
parent 7c5eb79f0a
commit 9b90172cd3
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
3 changed files with 4 additions and 6 deletions

View file

@ -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

View file

@ -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")