From c1ac45470c29d50c5e9c0d236e290c30b3f6eaa1 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Mon, 19 Aug 2019 13:40:35 +0300 Subject: [PATCH] Added doc to test_event --- monkey/monkey_island/cc/models/zero_trust/test_event.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/models/zero_trust/test_event.py b/monkey/monkey_island/cc/models/zero_trust/test_event.py index 5ab478166..2542df8ef 100644 --- a/monkey/monkey_island/cc/models/zero_trust/test_event.py +++ b/monkey/monkey_island/cc/models/zero_trust/test_event.py @@ -11,19 +11,20 @@ class TestEvent(IslandTestCase): self.clean_finding_db() with self.assertRaises(ValidationError): - Event.create_event( + _ = Event.create_event( title=None, # title required message="bla bla", event_type=EVENT_TYPE_ISLAND ) with self.assertRaises(ValidationError): - Event.create_event( + _ = Event.create_event( title="skjs", message="bla bla", event_type="Unknown" # Unknown event type ) + # Assert that nothing is raised. _ = Event.create_event( title="skjs", message="bla bla",