mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
fix failing test by force logging in user
This commit is contained in:
parent
52b76a7998
commit
784b187b09
1 changed files with 2 additions and 0 deletions
|
@ -1747,6 +1747,8 @@ class VeryImportantPersonAdminTestCase(TestCase):
|
|||
self.factory = RequestFactory()
|
||||
|
||||
def test_save_model_sets_user_field(self):
|
||||
self.client.force_login(self.superuser)
|
||||
|
||||
# Create an instance of the admin class
|
||||
admin_instance = VeryImportantPersonAdmin(model=VeryImportantPerson, admin_site=None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue