Added doc to test_event

This commit is contained in:
Shay Nehmad 2019-08-19 13:40:35 +03:00
parent 524859f011
commit c1ac45470c
1 changed files with 3 additions and 2 deletions

View File

@ -11,19 +11,20 @@ class TestEvent(IslandTestCase):
self.clean_finding_db() self.clean_finding_db()
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
Event.create_event( _ = Event.create_event(
title=None, # title required title=None, # title required
message="bla bla", message="bla bla",
event_type=EVENT_TYPE_ISLAND event_type=EVENT_TYPE_ISLAND
) )
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
Event.create_event( _ = Event.create_event(
title="skjs", title="skjs",
message="bla bla", message="bla bla",
event_type="Unknown" # Unknown event type event_type="Unknown" # Unknown event type
) )
# Assert that nothing is raised.
_ = Event.create_event( _ = Event.create_event(
title="skjs", title="skjs",
message="bla bla", message="bla bla",