Josiah Kaviani

Results 172 issues of Josiah Kaviani

See #286 #### Things to protect: * `Story` class should not has `I` attirbute. * `I` object should not expose `steps` attribute. * `State` should not expose nested namespace.

feature

State subclass can't have empty class body. ```python class A1(State): # error ... ```

feature

Only instance of `State` class is allowed.

feature

Instead of trying to apply the same story to multiple objects, or ask how to repeat the same story in a loop - write story which operates on a collection...

documentation

* If we read a record from the database we already know primary key of the entity. * If we create a record in the database, the primary key will...

documentation

**Guides / Testing** * Do not unit test story steps in separation * Run story with different arguments * assert state properties * take a look into `primitives` library *...

documentation

It should be a state variable with object explained exit state of the domain process.

documentation

**Guides / Legacy projects** 1. extract simple one function services from fat models/controllers 2. refactor function services into stories with hard-coded behavior 3. extract implementation details from hard-coded stories 4....

documentation

**Usage / Story / Why** We give a lot more in development experience in comparison to ```python def action(): state = {} a1s1(state) a1s2(state) return state ``` * state representation...

documentation

#### Approach Exception arguments aren't necessary. We have `state` object accessible. See https://github.com/proofit404/stories/issues/627#issuecomment-803674101 #### HTTP Status codes HTTP codes does not match to domain errors well. If we respond with...

documentation