Skip to content

Commit

Permalink
chg: [tests] Update stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jul 21, 2019
1 parent 3793fb1 commit ff2dd44
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/testlive_comprehensive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1409,13 +1409,8 @@ def test_statistics(self):
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()))
Expand Down

0 comments on commit ff2dd44

Please sign in to comment.