Merge branch '2.4' into develop

composer_fix
iglocska 2023-03-13 15:36:05 +01:00
commit d2ed1175bd
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -1453,7 +1453,7 @@ class TestSecurity(unittest.TestCase):
with self.__setting("Security.hide_organisation_index_from_users", True):
logged_in = PyMISP(url, self.test_usr.authkey)
for key in (org.id, org.uuid, org.name):
for key in (org.id, org.uuid):
fetched_org = logged_in.get_organisation(key)
check_response(fetched_org)
self.assertNotIn("created_by", fetched_org["Organisation"])
@ -1624,7 +1624,7 @@ class TestSecurity(unittest.TestCase):
def __create_org(self) -> MISPOrganisation:
organisation = MISPOrganisation()
organisation.name = 'Test Org ' + random() # make name always unique
organisation.name = 'TestOrg' + random() # make name always unique
org = self.admin_misp_connector.add_organisation(organisation)
check_response(org)
return org