Skip to content

Commit

Permalink
merge inheritance bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Feb 25, 2021
1 parent c702dbf commit 81ee3db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/test/integration/web_interface/rest/test_rest_statistics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# pylint: disable=attribute-defined-outside-init,wrong-import-order

import json

from storage.db_interface_statistic import StatisticDbUpdater
Expand All @@ -6,16 +8,16 @@

class TestRestStatistics(RestTestBase):

def setUp(self):
super().setUp()
def setup(self):
super().setup()
self.stats_updater = StatisticDbUpdater(config=self.config)
self.stats_updater.update_statistic('file_type', {'file_types': [['application/gzip', 3454]],
'firmware_container': [['application/zip', 3], ['firmware/foo', 1]]})
self.stats_updater.update_statistic('known_vulnerabilities', {'known_vulnerabilities': [['BackDoor_String', 1]]})

def tearDown(self):
def teardown(self):
self.stats_updater.shutdown()
super().tearDown()
super().teardown()

def test_rest_request_all_statistics(self):
st = self.test_client.get('/rest/statistics', follow_redirects=True)
Expand Down

0 comments on commit 81ee3db

Please sign in to comment.