SlideShare a Scribd company logo
Getting Started with Mixer
Guinsly Mondésir
Github ~ Twitter
Master in Information Studies
May 2017
Audience: Beginner
Category: Web development, Tests
6 min.
Overview
● What are fixtures
● What is Mixer
● API (Briefly)
● Tests
● Conclusion
What are fixtures (Django)
● A quick and efficient way to provide initial data
in your Django applications.
● Provide initial data
How to add Fixtures into your Django app with Mixer
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.
1- API Briefly
● API
– .blend()
– .cycle()
– .sequence()/.RANDOM
– .fake
– locale
– ORM
Class Diagram - Blog
.blend()
● Generates instance of scheme.
.blend()
No magic
No Magic (suite)
.cycle()
● Generate a few objects.
.sequence()
● Create a sequence for predefined values.
.RANDOM()
● Act almost as mixer.sequence() but randomly
fake=True
.faker.locale
●
2- ORM
● OneToOne
● OneToMany
● ManyToMany
● ManyToMany_Through
● Contenttypes
● Proxy
i.e.: Realationship 1-to-1
3- Test Structure Overview
test_models.py
test_views.py
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
References
● Django
● Mixer.Readthedoc
● Testing Django (Mozilla developer network)
● Images Json-XML
● Images: Blog wireframe

More Related Content

PPTX
Akka - young fighter course
PDF
TAO and the Essence of Modern JavaScript
PPT
Javascript Workshop
PDF
Gatling Performance Workshop
PPTX
Async Web QA
PPTX
Intro to RxJS
PDF
rubyonrails
PDF
Introduction to Object Oriented Javascript
Akka - young fighter course
TAO and the Essence of Modern JavaScript
Javascript Workshop
Gatling Performance Workshop
Async Web QA
Intro to RxJS
rubyonrails
Introduction to Object Oriented Javascript

What's hot (20)

ODP
JavaScript Object Oriented Programming Cheat Sheet
PDF
Reactive Programming
PDF
Reflection in Pharo: Beyond Smalltak
PDF
Dynamically Composing Collection Operations through Collection Promises
PDF
Lessons learned from SearchD development
PPTX
Patterns in JavaScript
PPTX
JavaScript Static Security Analysis made easy with JSPrime
PDF
Callable and runnable objects in ruby
PDF
Hello, React Hooks!
PDF
Advanced Reflection in Pharo
ODP
Python simillar image search
PDF
How we migrated Zalando app to Swift3?
PDF
JavaScript Static Analysis Tools and Techniques - STP Online Session 2013
PDF
JavaScript, qué hermoso eres
PDF
iOS advanced architecture workshop 3h edition
PDF
JavaScript: Patterns, Part 3
PDF
Asynchronous JavaScript Programming with Callbacks & Promises
PDF
React - The JavaScript Library for User Interfaces
PDF
Ansible Galaxy @ Berlin Meetup 0415
PDF
Angular Observables & RxJS Introduction
JavaScript Object Oriented Programming Cheat Sheet
Reactive Programming
Reflection in Pharo: Beyond Smalltak
Dynamically Composing Collection Operations through Collection Promises
Lessons learned from SearchD development
Patterns in JavaScript
JavaScript Static Security Analysis made easy with JSPrime
Callable and runnable objects in ruby
Hello, React Hooks!
Advanced Reflection in Pharo
Python simillar image search
How we migrated Zalando app to Swift3?
JavaScript Static Analysis Tools and Techniques - STP Online Session 2013
JavaScript, qué hermoso eres
iOS advanced architecture workshop 3h edition
JavaScript: Patterns, Part 3
Asynchronous JavaScript Programming with Callbacks & Promises
React - The JavaScript Library for User Interfaces
Ansible Galaxy @ Berlin Meetup 0415
Angular Observables & RxJS Introduction
Ad

Similar to How to add Fixtures into your Django app with Mixer (20)

PDF
Spock pres
PDF
Testing with Express, Mocha & Chai
PDF
Property-based testing an open-source compiler, pflua (FOSDEM 2015)
PDF
Test all the things! Automated testing with Drupal 8
PDF
Advanced Dagger talk from 360andev
PDF
Angular Intermediate
PPTX
Beyond unit tests: Deployment and testing for Hadoop/Spark workflows
PDF
Test driven development - Zombie proof your code
PDF
Quick introduction to Angular 4 for AngularJS 1.5 developers
PDF
OUG Ireland 2019 - building free, open-source, PL/SQL products in cloud
PDF
PyConUK 2014 - PostMortem Debugging and Web Development Updated
PDF
EuroPython 2013 - FAST, DOCUMENTED AND RELIABLE JSON BASED WEBSERVICES WITH P...
PDF
Post-Mortem Debugging and Web Development
PDF
django
PDF
Node.js Course 2 of 2 - Advanced techniques
PDF
Automated testing
PDF
Are app servers still fascinating
PPTX
Attacking GraphQL
ODP
Behat Workshop at WeLovePHP
PDF
Deep dive into Android async operations
Spock pres
Testing with Express, Mocha & Chai
Property-based testing an open-source compiler, pflua (FOSDEM 2015)
Test all the things! Automated testing with Drupal 8
Advanced Dagger talk from 360andev
Angular Intermediate
Beyond unit tests: Deployment and testing for Hadoop/Spark workflows
Test driven development - Zombie proof your code
Quick introduction to Angular 4 for AngularJS 1.5 developers
OUG Ireland 2019 - building free, open-source, PL/SQL products in cloud
PyConUK 2014 - PostMortem Debugging and Web Development Updated
EuroPython 2013 - FAST, DOCUMENTED AND RELIABLE JSON BASED WEBSERVICES WITH P...
Post-Mortem Debugging and Web Development
django
Node.js Course 2 of 2 - Advanced techniques
Automated testing
Are app servers still fascinating
Attacking GraphQL
Behat Workshop at WeLovePHP
Deep dive into Android async operations
Ad

Recently uploaded (20)

PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
PDF
Jenkins: An open-source automation server powering CI/CD Automation
PDF
Best Practices for Rolling Out Competency Management Software.pdf
PDF
A Practical Breakdown of Automation in Project Management
PDF
Comprehensive Salesforce Implementation Services.pdf
PPTX
Dynamic Solutions Project Pitch Presentation
DOCX
The Five Best AI Cover Tools in 2025.docx
PDF
Convert Thunderbird to Outlook into bulk
PPTX
Benefits of DCCM for Genesys Contact Center
PPTX
How a Careem Clone App Allows You to Compete with Large Mobility Brands
PDF
Best Mobile App Development Company in Lucknow - Code Crafter Web Solutions
PDF
Rise With SAP partner in Mumbai.........
PPTX
Services offered by Dynamic Solutions in Pakistan
PDF
Perfecting Gamer’s Experiences with Performance Testing for Gaming Applicatio...
PPTX
Computer Hardware tool: hand tools, diagnostics, ESD and cleaning tools
PDF
How to Confidently Manage Project Budgets
PDF
Sensix-Tech-Pvt-Ltd-Company-Profile (1).pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Become an Agentblazer Champion Challenge
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
Jenkins: An open-source automation server powering CI/CD Automation
Best Practices for Rolling Out Competency Management Software.pdf
A Practical Breakdown of Automation in Project Management
Comprehensive Salesforce Implementation Services.pdf
Dynamic Solutions Project Pitch Presentation
The Five Best AI Cover Tools in 2025.docx
Convert Thunderbird to Outlook into bulk
Benefits of DCCM for Genesys Contact Center
How a Careem Clone App Allows You to Compete with Large Mobility Brands
Best Mobile App Development Company in Lucknow - Code Crafter Web Solutions
Rise With SAP partner in Mumbai.........
Services offered by Dynamic Solutions in Pakistan
Perfecting Gamer’s Experiences with Performance Testing for Gaming Applicatio...
Computer Hardware tool: hand tools, diagnostics, ESD and cleaning tools
How to Confidently Manage Project Budgets
Sensix-Tech-Pvt-Ltd-Company-Profile (1).pdf
How Creative Agencies Leverage Project Management Software.pdf
Become an Agentblazer Champion Challenge

How to add Fixtures into your Django app with Mixer