瀏覽代碼

added small test for getting job from metadata

Toan Quach 1 年之前
父節點
當前提交
eeba0d7238
共有 1 個文件被更改,包括 1 次插入0 次删除
  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():