proofit404 / stories

Service objects designed with OOP in mind.
https://proofit404.github.io/stories/
BSD 2-Clause "Simplified" License
297 stars 21 forks source link

Story could define an actor. #696

Closed proofit404 closed 1 year ago

proofit404 commented 3 years ago

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 systems with multiple actor roles, i.e. reviewer, reporter, admin, manager.

from stories import Story, Actor, I

class Architect(Actor):
    ...

class TrackIssueProgress(Story, Architect):
    I.fetch_webhook_data
    I.check_data_is_valid
    I.mark_hook_as_received
    I.create_new_issue
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 5.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: