Ver código fonte

added small test for getting job from metadata

Toan Quach 1 ano atrás
pai
commit
eeba0d7238
1 arquivos alterados com 1 adições e 0 exclusões
  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():