stories
stories copied to clipboard
Raise StateError on missed variables.
People should not use hasattr to set user attribute from three tries. Choice different names for different situations.
- Inside story steps.
def a1s1(self, state): state.foo # error - Outside of story execution
state = State() state.foo # error -
hasattrshould not workhasattr(state, 'foo') # error