stories icon indicating copy to clipboard operation
stories copied to clipboard

Story could define an actor.

Open proofit404 opened this issue 4 years ago • 0 comments

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

proofit404 avatar Jun 11 '21 21:06 proofit404