Skip to content

Commit 1edf889

Browse files
committed
lib/test: Remove debugging stub in static_bot_check
the raising ValueError does not serve a purpose, appears to be a debugging leftover it contradicts the method's docstring
1 parent a98bbfd commit 1edf889

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Please refer to the [NEWS](NEWS.md) for a list of changes which have an affect o
4343
- `intelmq.tests.lib.test_pipeline.TestAmqp.test_acknowledge`: Skip on all Python versions when running on CI (PR#2602 by Sebastian Wagner).
4444
- `.github/workflows/codespell.yml`, `debian-package.yml`, `regexploit.yml`: Upgrade to `ubuntu-latest` runners (PR#2602 by Sebastian Wagner).
4545
- `intelmq.test.test_conf`: With changed behaviour in ruamel.yaml on line wrapping since version 0.18.13, only test the parsabilty of `runtime.yaml` (PR#2619 by Sebastian Wagner).
46+
- `intelmq.test.BotTestCase.test_static_bot_check_method`: Remove debugging stub raising for all non-empty checks (PR#2622 by Sebastian Wagner).
4647

4748
### Tools
4849
- `intelmq.bin.intelmq_psql_initdb`: Use `JSONB` type by default, Postgres supports it since version 9 (PR#2597 by Sebastian Wagner).

intelmq/lib/test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ def test_static_bot_check_method(self, *args, **kwargs):
304304
self.assertNotEqual(check[0].upper(), 'ERROR',
305305
'%s.check returned the error %r.'
306306
'' % (self.bot_name, check[1]))
307-
raise ValueError(f'checks is {checks!r}')
308307

309308
def run_bot(self, iterations: int = 1, error_on_pipeline: bool = False,
310309
prepare=True, parameters={},

0 commit comments

Comments
 (0)