You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would need to be split up, so that the init() method of the bot to be tested is not called. At least this would be needed if check() is used like it is in the MISP Output bot above.
The text was updated successfully, but these errors were encountered:
bernhardreiter
changed the title
check
allow bots check() method to run from test without full initialization
Feb 18, 2020
Thanks for suggestion and improvement. Right now I cannot test it, so maybe. ;) It looks a bit too simple, when I remember what I had tried, but maybe I did not understand enough when trying to poke around.
Allow the check() methods of bots to run in automatic tests.
Right now the check() can happen without all full libraries imported, to check for the existence of parameters, e.g. in
intelmq/intelmq/bots/outputs/misp/output_feed.py
Line 106 in ec0e911
It can be good to use the code for automatic tests as well. For this the prepare_bot() method
of
intelmq/intelmq/lib/test.py
Line 187 in ec0e911
The text was updated successfully, but these errors were encountered: