stories
stories copied to clipboard
Service objects designed with OOP in mind.
It does not make sense to nest management stories if you are the user. Stories not marked with any `Actor` could be nested into story with any actor. ```python from...
```python class Review(Story, Actor): # error I.fetch_pending_report ```
We could define an actor as part of the story to make it easier for reader to understand who `I` is in that use case. Should be extra useful in...
```python class A1State(State): a1v1 = Argument() class A2State(State): a2v1 = Argument() NewState = A1State & A2State ``` The `NewState` would have both `a1v1` and `a2v1` arguments declared. If name was...
https://waffle.readthedocs.io/ Use service composition for global features (like enable/disable promo code processing on the whole site). Use inversion of control in single service for user settings (like use SMS instead...
```python class Action(Story): I.a1s1 I.a1s2 I.a1s1 # error ```
```pycon >>> Reporter Reporter ProvideReport ReviewReport ```
Looks like conditional are the only place witch use strings as part of the api. Ideally, we should invent syntax based on identifiers. In case, this is not possible -...