django-testing
Specify Django Test Database names in settings.py
I\'m specifying the databases using a python object: DATABASES = { \'default\':{ \'ENGINE\':\'mysql\',[详细]
2023-02-06 18:09 分类:问答Django Testing - Problems with South and MySQL
Trying to setup our systems on our django project to utilize django\'s testing framework. However, when I try running python manage.py test I get various errors explained below.[详细]
2023-02-02 09:17 分类:问答Can Django Test Client Be Used for API Calls in Production?
I\'m building a Django app with an API built on Piston. For the sake of keeping everything as DRY as possible and the API complete, I\'d like my internal applications to call the API rather than the m[详细]
2023-02-02 05:06 分类:问答How do I modify the session in the Django test framework
My site allows individuals to contribute content in the absence of being logged in by creating a User based on the current session_key[详细]
2023-01-31 06:56 分类:问答Django not running tests with manage.py test, unless an app and a specific test method is specified
I have a Django application, myApp. In it, there\'s a tests.py file which defines a number of test cases using django.test.TestCase class. For example, one of them is called WebViews, and has a test m[详细]
2023-01-30 13:33 分类:问答Django testing tips [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]
2023-01-30 09:43 分类:问答Test out small snippets of Django code
I am still in the development phase of a Django App. Before even writing my views.py, I test them out to see if my models are correctly defined. This I do it in the terminal by invoking[详细]
2023-01-27 12:42 分类:问答django:: invoking middleware in tests
I have a middleware function which defines request.foo. A function I want to test depends on foo being defined from the middleware. How do I test said function since the middleware isn\'t run during t[详细]
2023-01-27 07:45 分类:问答Django testing: Test the initial value of a form field
开发者_开发技巧I have a view that should be setting an initial value for a form field based on a GET value. I want to test this. I\'m currently using Django\'s test client but I am open to looking at[详细]
2023-01-25 22:26 分类:问答django - specify database for TestCase fixtures
I have two databases that my site uses and I have an app that uses both of them. I need to write a TestCase that loads开发者_JS百科 fixtures for both databases. I use a DB router, which works fine in[详细]
2023-01-23 20:00 分类:问答