django-testing
Django, generic relations, make fixtures
I\'m trying to add generic relations and one-to-one relations support for django-test-utils makefixture command, here is the source http://github.co开发者_如何学Cm/ericholscher/django-test-utils/blob/[详细]
2023-01-18 02:04 分类:问答Error in django unittest while loading a fixture
I am making unittests for a django app. I need some data in the database for my tests so I am using a json fixture.[详细]
2023-01-17 20:49 分类:问答Django Testing: determine which view was executed
In the Django testing documentation they promise that you can \"Test that the correct view is executed for a given URL.\"[详细]
2023-01-15 21:51 分类:问答Why are the Django project URLs not all available to the Django test client?
I\'ve been开发者_高级运维 trying to add the django-lean app to my project. The django-lean app is not located in the project I\'m working on, it is on the PYTHONPATH.[详细]
2023-01-12 16:34 分类:问答How can reverse('opensearch') work in the shell, but fails in a Test?
I\'m trying to install django-lean into my application. Open search is used in my app App. I can reverse(\'opensearch\') in the Python shell. However, in the test, reverse(\'opensearch\') * NoRever[详细]
2023-01-11 23:54 分类:问答in a brand-new django project, django auth tests fail
I make a brand-new django project and do literally nothing with it except give values to DATABASE_USER, DATABASE_ENGINE, DATABASE_NAME, and DATABASE_PASSWORD, and django auth test fail. How is this ev[详细]
2023-01-07 23:06 分类:问答How do I tell Django to save my test database?
Running Django unit tests is far too slow.Especially when I just want to run one test but the test runner wants to create the entire database and destroy the whole thing just for that one test.[详细]
2023-01-04 18:21 分类:问答How can I unit test django messages?
In my django application, I\'m trying to write a unit test tha开发者_开发技巧t performs an action and then checks the messages in the response.[详细]
2022-12-31 16:01 分类:问答Django - testing using large tables of static data
I am using \"manage.py test\" along with a JSON fixture I created using using \'dumpdata\' My problem is that several of the tables in the fixture are very large (for example one containing the names[详细]
2022-12-31 13:29 分类:问答Problems using User model in django unit tests
I have the following django test case that is giving me errors: class MyTesting(unittest.TestCase): def setUp(self):[详细]
2022-12-30 04:16 分类:问答