Behavior-machine

Latest version: v0.4.0

Safety actively analyzes 688775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

0.1.0

Added
- ability to timeout for state & tests for it.
- method to add transition when the state failed.
- `ParallelState` that runs all the children simultanously.
- Catch-all exception checking in `execute`. All exceptions are now handled and slowly bubble up to the highest state with information saved in `_inner_exception`.
- Added multiple test for exception handling
- `WaitState` could now be interrupted and end early.
- `NestedState` object that derives from `State`. This object allows sharing of functions that are used in nested scenarios.

Changed
- Change some test to use pytest methods.
- `SequentialMachine` is renamed to `SequentialState`
- All states that have nested states are now derived from `NestedState`

0.0.4

Added
- `WaitState` that waits for X seconds before continuing, and its corresponding tests.

Changed
- Switched testing from `unittest` to `pytest`

Fixed
- Exception when no `endStates` are passed into a state machine's constructor.

0.0.3

- Changed unittest from `setuptools` to `tox`.
- Added more unit test
- Renamed `ExecutionMachine` to `Machine`

0.0.2

- Split out classes in state into their seperate files.
- Fixed bug where `run` creates two initial states.
- added StandardStateLibrary with `print state`, `sequential machine`.

0.0.1

Initial Construct

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.