Related questions
How to Unit test with different settings in Django?
Is there any simple mechanism for overriding Django settings for a unit test? I have a manager on one of my models that returns a specific number of the latest objects. The number of objects it returns is defined by …
django unit tests without a db
Is there a possibility to write django unittests without setting up a db? I want to test business logic which doesn't require the db to set up. And while it is fast to setup a db, I really don't need …
how to write django test meant to fail?
I have a model called Thing with an attribute called name, and I want name to be a char field that's only 3 characters long.
How do I write a test for that?
class TestCase1(TestCase):
def test1(self):
thing = Thing(…