Browse Source

added small test for getting job from metadata

Toan Quach 1 năm trước cách đây
mục cha
commit
eeba0d7238
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      tests/core/notification/test_notifier.py

+ 1 - 0
tests/core/notification/test_notifier.py

@@ -742,6 +742,7 @@ def test_publish_submission_event():
         and event.attribute_name == expected_attribute_names[i]
         for i, event in enumerate(published_events)
     )
+    assert published_events[4].metadata == {"job": job.id}
 
 
 def test_publish_deletion_event():