File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
services/dynamic-scheduler
src/simcore_service_dynamic_scheduler/services/generic_scheduler
tests/unit/services/generic_scheduler Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class OperationInitialContextKeyNotFoundError(BaseGenericSchedulerError):
2525 )
2626
2727
28- class StepNotFoundInoperationError (BaseGenericSchedulerError):
28+ class StepNotFoundInOperationError (BaseGenericSchedulerError):
2929 msg_template: str = (
3030 "Step '{step_name}' not found steps_names='{steps_names}' for operation '{operation_name}'"
3131 )
Original file line number Diff line number Diff line change 99from ._errors import (
1010 OperationAlreadyRegisteredError,
1111 OperationNotFoundError,
12- StepNotFoundInoperationError ,
12+ StepNotFoundInOperationError ,
1313)
1414from ._models import (
1515 ALL_RESERVED_CONTEXT_KEYS,
@@ -390,7 +390,7 @@ def get_step(
390390
391391 steps_names = set(cls._OPERATIONS[operation_name]["steps"].keys())
392392 if step_name not in steps_names:
393- raise StepNotFoundInoperationError (
393+ raise StepNotFoundInOperationError (
394394 step_name=step_name,
395395 operation_name=operation_name,
396396 steps_names=steps_names,
Original file line number Diff line number Diff line change 55from simcore_service_dynamic_scheduler.services.generic_scheduler._errors import (
66 OperationAlreadyRegisteredError,
77 OperationNotFoundError,
8- StepNotFoundInoperationError ,
8+ StepNotFoundInOperationError ,
99)
1010from simcore_service_dynamic_scheduler.services.generic_scheduler._models import (
1111 ALL_RESERVED_CONTEXT_KEYS,
@@ -237,7 +237,7 @@ def test_operation_registry_raises_errors():
237237 with pytest.raises(OperationNotFoundError):
238238 OperationRegistry.get_step("non_existing", "BS1")
239239
240- with pytest.raises(StepNotFoundInoperationError ):
240+ with pytest.raises(StepNotFoundInOperationError ):
241241 OperationRegistry.get_step("op1", "non_existing")
242242
243243
Original file line number Diff line number Diff line change @@ -503,9 +503,9 @@ async def test_missing_initial_context_key_from_operation(
503503 register_operation(good_operation_name, operation)
504504 register_operation(bad_operation_name, operation)
505505
506- common_initial_context = {"unsued1 ": "value1", "unsued2 ": "value2"}
506+ common_initial_context = {"unused1 ": "value1", "unused2 ": "value2"}
507507 good_initial_context: OperationContext = {
508- "required_key": "soeme_value ",
508+ "required_key": "some_value ",
509509 **common_initial_context,
510510 }
511511 bad_initial_context: OperationContext = {**common_initial_context}
You can’t perform that action at this time.
0 commit comments