5 articles tagged tests
-
Testing Management Commands
I think to be a good Django citizen it would be appropriate to write tests ensuring that standard management commands work with your application. I thought of this after dealing …
-
Django: A New Way to Write Tests
Taking a lot of inspiration from Ruby’s RSpec, I’ve established a new way to write my tests when doing TDD in Django. Using django-nose, factoryboy, and a few …
-
"subject" Decorator for Django Tests
The Python elite will probably turn their noses up at me, but I just conjured an even better looking way to write my tests.
Using my utilities.py file I …
-
Decorating Django Tests
Just a quick note: when decorating Django tests you have to take care to name your return function using the same “test_” format otherwise an unmodified TestRunner will not discover …
-
Testing in Django
Writing tests and test-driven development has become all the rage lately; but before declaring assertions left and right, it’s important to consider where, why, and how you will write …