Skip to content

Commit

Permalink
BUG TST: rdap expert test: declare cache use
Browse files Browse the repository at this point in the history
fixes #2014
  • Loading branch information
Sebastian Wagner committed Jul 2, 2021
1 parent 7ca78f1 commit b120df1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ CHANGELOG

### Tests
- Replace calls to deprecated/undocumented `logging.warn` with `logging.warning` (by Sebastian Wagner, fixes #2013).
- `intelmq.tests.bots.experts.rdap.test_expert`: Declare cache use, fixes build failures (by Sebastian Wagner, fixes #2014).

### Tools

Expand Down
7 changes: 4 additions & 3 deletions intelmq/tests/bots/experts/rdap/test_expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ class TestRDAPExpertBot(test.BotTestCase, unittest.TestCase):
"""

@classmethod
def set_bot(self):
self.bot_reference = RDAPExpertBot
self.sysconfig = {
def set_bot(cls):
cls.bot_reference = RDAPExpertBot
cls.sysconfig = {
'rdap_bootstrapped_servers': {
'com': 'http://localhost/rdap/v1/',
'versicherung': 'http://localhost/rdap/v1/',
}
}
cls.use_cache = True

def test(self, mocker):
prepare_mocker(mocker)
Expand Down

0 comments on commit b120df1

Please sign in to comment.