Stories

Latest version: v5.1.0

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

Scan your dependencies

Page 1 of 3

5.1.0

Features

- story could define its actor
[696](https://github.com/proofit404/stories/issues/696) 5547ada

5.0.0

Code Refactoring

- earthquake [627](https://github.com/proofit404/stories/issues/627) f2b793f

Features

- add argument and variable placeholders
[704](https://github.com/proofit404/stories/issues/704) 24ed603
- declare argument including validation
[605](https://github.com/proofit404/stories/issues/605) ccc0308
- declare argument without validation
[602](https://github.com/proofit404/stories/issues/602) a599aec
- declare variable including validation
[606](https://github.com/proofit404/stories/issues/606) 670f879
- declare variable without validation
[591](https://github.com/proofit404/stories/issues/591) d760230
- deny to assign undeclared variable
[680](https://github.com/proofit404/stories/issues/680) b1a99aa
- deny to pass undeclared arguments
[681](https://github.com/proofit404/stories/issues/681) 9705232
- execute steps in given order
[664](https://github.com/proofit404/stories/issues/664) 076c656
- implement [initiate](https://github.com/initiate) decorator
[324](https://github.com/proofit404/stories/issues/324) f747b5d
- implement [initiate](https://github.com/initiate) restrictions
[649](https://github.com/proofit404/stories/issues/649) d4d24d4
- propagate exceptions [631](https://github.com/proofit404/stories/issues/631)
fbb87b4
- state union merge variable validators
[688](https://github.com/proofit404/stories/issues/688) cf9afc4
- story call should return none
[630](https://github.com/proofit404/stories/issues/630) 0622d21
- story steps could assign state variable
[693](https://github.com/proofit404/stories/issues/693) 0c30861

BREAKING CHANGES

- The old codebase was removed. The library was redesigned from scratch. A lot
of existed functionality was removed. Contrib integrations was moved to
separate repositories. The goal of the library stays the same. Allow to
express domain knowledge inside codebase with minimal friction. The approach
we took is similar with the old one but most of design flaws was fixed in new
version.

[4.1.0](https://github.com/proofit404/stories/compare/4.0.0...4.1.0) (2020-11-20)

Features

- support pypy interpreter
[42](https://github.com/proofit404/stories/issues/42)
([08fe88a](https://github.com/proofit404/stories/commit/08fe88a3bc87acd4967c6b8ded2c7d8ace344c51))

[4.0.0](https://github.com/proofit404/stories/compare/3.0.0...4.0.0) (2020-11-12)

Build System

- add python 3.9 support
[553](https://github.com/proofit404/stories/issues/553)
([a48fec7](https://github.com/proofit404/stories/commit/a48fec72302099577ddfad4ba4f8ebf4d163cd33))

BREAKING CHANGES

- drop python 3.6 support.

[3.0.0](https://github.com/proofit404/stories/compare/2.0.0...3.0.0) (2020-10-01)

Features

- rename Skip marker to Next marker
[141](https://github.com/proofit404/stories/issues/141)
([5799aef](https://github.com/proofit404/stories/commit/5799aef516a35256ff7ae02c8dc5ec634e53b3d1))

BREAKING CHANGES

- All usage of the `Skip()` marker should be replaced with `Next()` marker.

[2.0.0](https://github.com/proofit404/stories/compare/1.0.2...2.0.0) (2020-08-30)

Code Refactoring

- drop Python 2.7 and 3.4 support
[494](https://github.com/proofit404/stories/issues/494)
([0a6bf21](https://github.com/proofit404/stories/commit/0a6bf2158e53b4586b141953aeb46ed5ba01cb02))

BREAKING CHANGES

- Due to the our new policy of enterprise user support we will drop abandoned
version of python and libraries we are integrated with as soon as they reach
official end of life.

[1.0.2](https://github.com/proofit404/stories/compare/1.0.1...1.0.2) (2020-07-31)

Bug Fixes

- deny to use same story step twice
([d379956](https://github.com/proofit404/stories/commit/d379956db8d4cc1e4a0b3e55872f9ad051d8a29a))

[1.0.1](https://github.com/proofit404/stories/compare/1.0.0...1.0.1) (2020-06-26)

Bug Fixes

- prevent story to call itself recursively
([4a7007a](https://github.com/proofit404/stories/commit/4a7007a928713661ba73f9bf1edc509e3b3363a5))

[1.0.0](https://github.com/proofit404/stories/compare/0.15.0...1.0.0) (2020-05-22)

Features

- deprecate substories defined within the class
([c5d7930](https://github.com/proofit404/stories/commit/c5d7930af4d0af3a510993b852aeee19335a4154)),
closes [388](https://github.com/proofit404/stories/issues/388)

BREAKING CHANGES

- Substories defined in the same class do not deserve special treatment. From
now they require to have different context contracts and failure protocols.
They will be interpreted the same way as if they were defined in the other
class. Shortcuts module have been removed.

[0.15.0](https://github.com/proofit404/stories/compare/0.14.0...0.15.0) (2020-04-16)

Features

- support Django 4.0
([f02a334](https://github.com/proofit404/stories/commit/f02a3341c58b7885a2095c11ff5bef4acf626e94))

[0.14.0](https://github.com/proofit404/stories/compare/0.13.0...0.14.0) (2020-03-21)

Features

- support marshmallow v3 as a context contract definition
([a87c0c4](https://github.com/proofit404/stories/commit/a87c0c45cbb52e40fba872f57aa07a3550de6143))

[0.13.0](https://github.com/proofit404/stories/compare/0.12.0...0.13.0) (2020-03-14)

Features

- use assignment expression instead of Success keyword arguments
([9756571](https://github.com/proofit404/stories/commit/9756571237d56c52f8769c61f20f544ab389a211))

[0.12.0](https://github.com/proofit404/stories/compare/0.11.2...0.12.0) (2020-03-06)

Features

- support coroutine functions as story step definitions
([55cbfda](https://github.com/proofit404/stories/commit/55cbfda33c61ca1395aaacf2d2d6a2c78f14ecde))

[0.11.2](https://github.com/proofit404/stories/compare/0.11.1...0.11.2) (2020-03-02)

Bug Fixes

- hide context private attributes in closure
([f8144aa](https://github.com/proofit404/stories/commit/f8144aabd8629682f9c7368a23c80316bb10fddc))
- hide failure and success summary private attributes in closure
([eae4e95](https://github.com/proofit404/stories/commit/eae4e95bd89a2df8fd31f77fe665659c29feedd8))
- hide FailureError private attributes in closure
([1fafcc1](https://github.com/proofit404/stories/commit/1fafcc1039775f2fbcc242b582181fab2d4e63d7))
- hide story private attributes in closure
([9e79e14](https://github.com/proofit404/stories/commit/9e79e1417785db1e13ed01a1cd64613d5bf24a8a))

[0.11.1](https://github.com/proofit404/stories/compare/0.11.0...0.11.1) (2020-02-28)

Bug Fixes

- deny to define stories without steps
([5067546](https://github.com/proofit404/stories/commit/5067546386df294db595fb0ee4e8968ee295c4b3))

[0.11.0](https://github.com/proofit404/stories/compare/0.10.2...0.11.0) (2020-02-14)

Features

- Add context contract to the story. `Success` keyword arguments can be
validated by contract definition in the story.
- Raise `MutationError` when some story method tries to set or delete context
attribute directly.
- Only keyword arguments are allowed to `call` and `run` the story.
- Raise `StoryDefinitionError` when `arguments` decorator is used incorrectly.
- migrate to pydantic v1.x
([9049eae](https://github.com/proofit404/stories/commit/9049eae43c7b8db36708fc019a671a53bf4b578d))

[0.10.2](https://github.com/proofit404/stories/compare/0.10.1...0.10.2) (2020-02-11)

Bug Fixes

- prevent generated changelog from style guide violation
([7d4047d](https://github.com/proofit404/stories/commit/7d4047d10e4dacc10ec356700b1fc35161efa4c0))

0.10.1

- Fix pytest reporter to work with fixture functions and `pytest-bdd` plugin
properly.

0.10

- Add failure protocol of the story. `Failure` argument should match protocol
definition in the story.
- Replace multiple `argument` decorators with single `arguments`.
- Raise `ContextContractError` when keyword argument given to `Success` already
exists in the context.
- Raise `ContextContractError` when the story can not find necessary arguments
in the context.
- Make context an immutable object.
- Python 3.7 support.

0.9

- Enforce `I` noun with non callable attributes in the story definition.
- `Context` is passed as an argument into story step methods.
- Pass real class instances into step method.
- Show story execution path in the `Context` representation.
- Add Sentry, Py.test and Django Debug Toolbar plugins with `Context` reporter
built in.
- Raise an exception on `Failure` when the story was called directly.
- Support iterable protocol in the `Context` class.
- Add `Failure` reason.
- Fix `Skip` result behavior in deeper sub-story hierarchy.

0.8

- Add `dir()` and `repr()` support to the context class.
- Failed result holds a link to the context.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.