mirror of https://github.com/MISP/PyMISP
chg: [tests] Update stats
parent
3793fb1b3b
commit
ff2dd4435d
|
@ -1409,13 +1409,8 @@ class TestComprehensive(unittest.TestCase):
|
|||
tags_stats = self.admin_misp_connector.tags_statistics(percentage=True, name_sort=True)
|
||||
self.assertDictEqual(tags_stats, to_test)
|
||||
# Users
|
||||
to_test = {'stats': {'event_count': 3, 'event_count_month': 3, 'attribute_count': 8,
|
||||
'attribute_count_month': 8, 'attributes_per_event': 3, 'correlation_count': 1,
|
||||
'proposal_count': 0, 'user_count': 3, 'user_count_pgp': 0, 'org_count': 2,
|
||||
'local_org_count': 2, 'average_user_per_org': 1.5, 'thread_count': 0,
|
||||
'thread_count_month': 0, 'post_count': 0, 'post_count_month': 0}}
|
||||
users_stats = self.admin_misp_connector.users_statistics(context='data')
|
||||
self.assertDictEqual(users_stats, to_test)
|
||||
self.assertTrue('stats' in users_stats)
|
||||
|
||||
users_stats = self.admin_misp_connector.users_statistics(context='orgs')
|
||||
self.assertTrue('ORGNAME' in list(users_stats.keys()))
|
||||
|
|
Loading…
Reference in New Issue