fix failing test by force logging in user

This commit is contained in:
Rachid Mrad 2024-01-23 18:48:51 -05:00
parent 52b76a7998
commit 784b187b09
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF

View file

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