-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests that ensure parameter & input orders are retained (#155)
- Loading branch information
Showing
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- step: | ||
name: sing a melody | ||
image: python:3.12 | ||
command: echo {parameter:do} {parameter:re} {parameter:mi} {parameter:fa} {parameter:so} {parameter:la} {parameter:ti} | ||
parameters: | ||
- name: do | ||
- name: re | ||
- name: mi | ||
- name: fa | ||
- name: so | ||
- name: la | ||
- name: ti | ||
inputs: | ||
- name: drums | ||
- name: bass | ||
- name: guitar | ||
- name: vocals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
def test_parameter_order_is_retained(keep_order_config): | ||
step = keep_order_config.steps["sing a melody"] | ||
assert list(step.parameters.keys()) == ["do", "re", "mi", "fa", "so", "la", "ti"] | ||
|
||
|
||
def test_input_order_is_retained(keep_order_config): | ||
step = keep_order_config.steps["sing a melody"] | ||
assert list(step.inputs.keys()) == ["drums", "bass", "guitar", "vocals"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters