Sismic

Latest version: v1.6.8

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

Scan your dependencies

Page 5 of 11

0.26.7

-------------------

- (Removed) Nested context (ie. nested variable scopes) for the Python code evaluator.
- (Fixed) BDD step *expression {expression} holds*.

0.26.6

-------------------

- (Changed) Export to PlantUML uses short arrows by default.
- (Changed) Many improvements related to the transitions when using ``export_to_plantuml``.

0.26.4

-------------------

- (Added) ``sismic.bdd.execute_bdd`` can be used to execute BDD tests programmatically.
- (Added) ``sismic.bdd.__main__`` is the CLI interface for ``sismic-behave`` and can now be executed using
``python -m sismic.bdd`` too if sismic is available but not installed.
- (Added) Many tests for BDD steps.
- (Changed) ``Statechart.copy_from_statechart`` has only its first argument that can be provided by position.
The remaining ones (esp. ``source`` and ``replace``) should be provided by name.
- (Fixed) Sismic requires behave >= 1.6.0.
- (Fixed) Older versions of typing do not contain ``Deque``.
- (Removed) ``sismic.bdd.cli.execute_behave``, subsumed by ``sismic.bdd.execute_bdd``.

0.26.3

-------------------

- (Added) ``sismic.bdd`` exposes ``sismic.bdd.cli.execute_behave`` function to programmatically use ``sismic-bdd``.
- (Changed) ``execute_behave`` function has only two required parameters, and the remaining ones (that have default
values) can only be set by name, not by position.
- (Changed) ``action_alias`` and ``assertion_alias`` of module ``sismic.bdd.steps`` are renamed to ``map_action``
and ``map_assertion`` and are directly available from ``sismic.bdd``.

0.26.2

-------------------

- (Fixed) Step *Given/when I repeat "{step}" {repeat} times* requires *step* to be provided with no Gherkin
keyword. The current keyword (either *given* or *when*) is automatically used.
- (Fixed) Escape expression in *then expression "{expression}" holds* and its negative counterpart.

0.26.0

-------------------

Sismic support for BDD was completely rewritten. The CLI is now ``sismic-bdd``, pointing to the ``cli`` submodule of
the newly created ``sismic.bdd`` module. All steps that are related to Sismic internals were removed, and only
steps that manipulate the statechart are kept. Check the documentation and ``sismic.bdd.steps`` for more information.
Execution semantics have slightly changed but shouldn't have any impact when running BDD tests.
Predefined steps can be easily extended thanks to the ``action_alias`` and ``assertion_alias`` helpers.
See documentation for more details.

- (Changed) ``sismic-behave`` CLI is now ``sismic-bdd``.
- (Removed) ``--coverage`` option from ``sismic-behave`` CLI.
- (Changed) Rename ``sismic.testing`` to ``sismic.bdd``, and ``sismic.testing.behave`` to ``sismic.bdd.cli``.
- (Changed) A new list of predefined steps, available in ``sismic.bdd.steps``, see documentation.
- (Changed) A "when" step is now required before any "then" step. The "then" steps assert on what happens during
the "when" steps, and not on the whole execution or the last step as before.
- (Added) ``sismic.bdd.steps`` provides ``action_alias`` and ``assertion_alias`` to make defining new steps easy.
- (Changed) BDD tests are directly executed by ``pytest`` (instead of being triggered by Travis-CI).

Other changes:

- (Changed) ``Interpreter.bind_property`` becomes ``Interpreter.bind_property_statechart``.
- (Changed) ``helpers.coverage_from_trace`` returns a dict with "entered states", "exited states" and
"processed transitions".
- (Removed) Unused ``io.text``.

Page 5 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.