Skip to content

Commit

Permalink
change event_type_params
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Aug 8, 2023
1 parent 498b2f9 commit 2ce0232
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jupyter_scheduler/tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"output_formats": ["ipynb"],
}

event_type_params = {"name": "type1", "parameters": {"param1": "value1"}}
event_type_params = {"name": "a", "parameters": {"foo": "bar"}}


def create_job_definition(jp_scheduler, job_def_params):
Expand Down Expand Up @@ -61,8 +61,7 @@ def test_create_job_definition_with_on_events(jp_scheduler):
with jp_scheduler.db_session() as session:
definitions = session.query(JobDefinition).all()
definition = definitions[0]
assert 1 == len(definition.on_events)
assert [{"name": "type1", "parameters": {"param1": "value1"}}] == definition.on_events
assert [{"name": "a", "parameters": {"foo": "bar"}}] == definition.on_events


job_definition_1 = {
Expand Down

0 comments on commit 2ce0232

Please sign in to comment.