Skip to content

Commit

Permalink
Merge pull request #1648 from Avaiga/fix/failed-events-published-test…
Browse files Browse the repository at this point in the history
…-due-to-new-job-attributes

Fix - Failed events published test due to new job attributes
  • Loading branch information
trgiangdo authored Aug 8, 2024
2 parents a46d9fa + 3589396 commit e7ab8f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/core/notification/test_events_published.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ def test_events_published_for_scenario_submission():
# 1 submission update event for is_completed
scenario.submit()
snapshot = all_evts.capture()
assert len(snapshot.collected_events) == 17
assert len(snapshot.collected_events) == 19
assert snapshot.entity_type_collected.get(EventEntityType.CYCLE, 0) == 0
assert snapshot.entity_type_collected.get(EventEntityType.DATA_NODE, 0) == 7
assert snapshot.entity_type_collected.get(EventEntityType.TASK, 0) == 0
assert snapshot.entity_type_collected.get(EventEntityType.SEQUENCE, 0) == 0
assert snapshot.entity_type_collected.get(EventEntityType.SCENARIO, 0) == 1
assert snapshot.entity_type_collected.get(EventEntityType.JOB, 0) == 4
assert snapshot.entity_type_collected.get(EventEntityType.JOB, 0) == 6
assert snapshot.entity_type_collected.get(EventEntityType.SUBMISSION, 0) == 5
assert snapshot.operation_collected.get(EventOperation.CREATION, 0) == 2
assert snapshot.operation_collected.get(EventOperation.UPDATE, 0) == 14
assert snapshot.operation_collected.get(EventOperation.UPDATE, 0) == 16
assert snapshot.operation_collected.get(EventOperation.SUBMISSION, 0) == 1

assert snapshot.attr_name_collected["last_edit_date"] == 1
Expand Down

0 comments on commit e7ab8f8

Please sign in to comment.