Explorar o código

added small test for getting job from metadata

Toan Quach hai 1 ano
pai
achega
eeba0d7238
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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():