You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,8 +57,8 @@ Before sending us a pull request, please ensure that:
57
57
### Running the Unit Tests
58
58
59
59
1. Install tox using `pip install tox`
60
+
1. Install test dependencies, including coverage, using `pip install .[test]`
60
61
1. cd into the aws-step-functions-data-science-sdk-python folder: `cd aws-step-functions-data-science-sdk-python` or `cd /environment/aws-step-functions-data-science-sdk-python`
61
-
1. Install test dependencies, including coverage, using `pip install ".[test]"`
62
62
1. Run the following tox command and verify that all code checks and unit tests pass: `tox tests/unit`
63
63
64
64
You can also run a single test with the following command: `tox -e py36 -- -s -vv <path_to_file><file_name>::<test_function_name>`
@@ -80,7 +80,7 @@ You should only worry about manually running any new integration tests that you
80
80
81
81
1. Create a new git branch:
82
82
```shell
83
-
git checkout -b my-fix-branch main
83
+
git checkout -b my-fix-branch master
84
84
```
85
85
1. Make your changes, **including unit tests** and, if appropriate, integration tests.
86
86
1. Include unit tests when you contribute new features or make bug fixes, as they help to:
Copy file name to clipboardExpand all lines: src/stepfunctions/steps/states.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -221,11 +221,14 @@ def next(self, next_step):
221
221
ifself.typein ('Succeed', 'Fail'):
222
222
raiseValueError('Unexpected State instance `{step}`, State type `{state_type}` does not support method `next`.'.format(step=next_step, state_type=self.type))
223
223
224
-
# By design, choice states do not have the Next field. Setting default to make it chainable.
224
+
# By design, Choice states do not have the Next field. Their purpose is to define conditional transitions based
225
+
# on a set of Choice Rules. They can be viewed as an advanced Next field with multiple possible transitions.
226
+
# default_choice() sets the default transition to use in the case where none of the Choice Rules are met.
227
+
# See language spec for more info: https://states-language.net/spec.html#choice-state
225
228
ifself.typeis'Choice':
226
229
ifself.defaultisnotNone:
227
230
logger.warning(
228
-
"Chaining Choice Step: Overwriting %s's current default_choice (%s) with %s",
231
+
"Chaining Choice state: Overwriting %s's current default_choice (%s) with %s",
0 commit comments