django-testing
Django's self.client.login(...) does not work in unit tests
I have created us开发者_JAVA百科ers for my unit tests in two ways: 1) Create a fixture for \"auth.user\" that looks roughly like this:[详细]
2022-12-26 05:03 分类:问答Django - Testing with parts of original database
My database has two types of entries: The ver开发者_JS百科y dynamic (users, comments, etc) and the more static (email templates, flat-pages).[详细]
2022-12-23 05:23 分类:问答How can I interactively explore why a test is failing?
I have a test that is failing with: ======================================================================[详细]
2022-12-21 14:05 分类:问答How do you add OpenId session data to a Django test client POST?
I\'m trying to test that a UserProfile model is created as a new User is registered in django_authopenid.[详细]
2022-12-20 23:14 分类:问答How can I test a form's validation logic in a unit test driver in Django?
I want to test the is_valid portion of a form\'s validation logic.In my test driver I have: test_开发者_如何学Pythonanimal = Animal(name=\"cat\", number_paws=\"4\")[详细]
2022-12-18 23:09 分类:问答Writing good tests for Django applications
I\'ve never written any tests in my life, but I\'d like to start writing tests for my Django projects. I\'ve read some articles about tests and decided to try to write some tests for an extremely simp[详细]
2022-12-18 17:37 分类:问答In a Django unit test driver how do you test if an email is sent?
In a Django unit test drive开发者_C百科r how do you test if an email is sent?I\'m not a Django guru (to put it mildly) but it looks like there is some documentation on testing email here: Testing Djan[详细]
2022-12-18 05:32 分类:问答What tools can I use for Django Testing Automation?
I\'m looking into automating a test runner which would do the following things daily (or hourly or whenever I want basically):[详细]
2022-12-15 07:10 分类:问答Loading SQL dump before running Django tests
I have a fairly complex Django project which makes it hard/impossible to use fixtures for loading data.[详细]
2022-12-14 22:39 分类:问答How can I access response.context when testing a Jinja2 powered Django view
When I use the Django test.client and I do something like: class MyTestCase(TestCase): def test_this(self):[详细]
2022-12-14 18:10 分类:问答