How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How to add Fixtures into your Django app with Mixer
1. Getting Started with Mixer
Guinsly Mondésir
Github ~ Twitter
Master in Information Studies
May 2017
Audience: Beginner
Category: Web development, Tests
6 min.
2. Overview
● What are fixtures
● What is Mixer
● API (Briefly)
● Tests
● Conclusion
3. What are fixtures (Django)
● A quick and efficient way to provide initial data
in your Django applications.
● Provide initial data
4.
5. What is Mixer
● Mixer is an application to generate instances of
Django or SQLAlchemy models. It's useful for
testing and fixtures replacement. Fast and
convenient test-data generation.
6. 1- API Briefly
● API
– .blend()
– .cycle()
– .sequence()/.RANDOM
– .fake
– locale
– ORM
22. Conclusion
● Fixture : provide initial data to your applications
● TDD : test-fixtures
● Mixer: a package that helps to create fixture into your app
● Easy way to test your great ideas.
● There is no magic
● How to use it on your Tests (views; models; forms)
● Flask-Class-SQL Alchemy
● Star it / use it