Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate creating stories in Python, akin to unit tests (w/ DB awareness & factories) #106

Closed
thibaudcolas opened this issue Mar 11, 2020 · 3 comments
Labels
decision needed This requires a decision django Related to Django templates capabilities enhancement New feature or request
Milestone

Comments

@thibaudcolas
Copy link
Member

thibaudcolas commented Mar 11, 2020

Initial investigation by @bcdickinson. Rough idea:

  • Declare context in a Python file, as opposed to YAML
  • Inspired by Storybook’s use of JS for variants, which is much more flexible than YAML, and Django unit tests being better with factories rather than fixtures.

Much bigger bit of work than other things we’ve considered during this rock – a good outcome for the rock would be to design an interface for this.

@thibaudcolas
Copy link
Member Author

Related, I think: #13.

@thibaudcolas thibaudcolas added decision needed This requires a decision django Related to Django templates capabilities enhancement New feature or request labels Mar 11, 2020
@thibaudcolas
Copy link
Member Author

To consider: YAML extensions (custom entities?)

@thibaudcolas
Copy link
Member Author

I’m closing this now as this is basically exactly what @ababic did in #141.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decision needed This requires a decision django Related to Django templates capabilities enhancement New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants