fix: Make a response in the tests a MISPUser obj

pull/1242/head
Raphaël Vinot 2024-06-21 12:22:08 +02:00
parent 0ffdca123b
commit 391fe580d4
1 changed files with 1 additions and 1 deletions

View File

@ -2716,7 +2716,7 @@ class TestComprehensive(unittest.TestCase):
# # Enable autoalert on admin
self.admin_misp_connector._current_user.autoalert = True
self.admin_misp_connector._current_user.termsaccepted = True
admin_usr = self.admin_misp_connector.update_user(self.admin_misp_connector._current_user)
admin_usr = self.admin_misp_connector.update_user(self.admin_misp_connector._current_user, pythonify=True)
self.assertTrue(admin_usr.autoalert)
first = self.admin_misp_connector.add_event(first, pythonify=True)