fix: Tests failing du to missing error

pull/1242/head
Raphaël Vinot 2024-06-21 12:07:21 +02:00
parent 0f34db6f48
commit c24b2aec98
1 changed files with 2 additions and 1 deletions

View File

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