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

Deny to use stories with different actors in composition. #697

Closed proofit404 closed 1 year ago

proofit404 commented 3 years ago

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.

from stories import Story, Actor, I

class Architect(Actor):
    ...

class Reporter(Actor):
    ...

class TrackIssueProgress(Story, Architect):
    I.do

class FetchIssues(Story, Reporter):
    I.do

TrackIssueProgress(FetchIssues())  # error
proofit404 commented 1 year ago

Superseded by #723