I woul开发者_如何学Cd like to write a setup.py script that runs all of my django app\'s tests and fails the installation if one of the tests don\'t pass.
I\'m trying to be a good programmer and use Django\'s testing facility.things are going pretty well, but I would like to be able to examine the database when I stop the program in the debugger.It look
I\'m loading a fixture created with dumpdata, and getting the following exception: Problem installing fixture \'db_dump.json\': Traceback (most recent call last):
I use Postgres for production and development, but I\'d like to use sqlite to run some tests.I don\'t see an easy way to configure one engi开发者_开发技巧ne for tests and another for dev / production.
Sometimes I want to execute a file in the context of my Django project, just as if I were using the shell, but with the convenience of using a text editor.This is mainly to try something out, or quick
I\'m having a hard time customizing the test database setup behavior. I would like to achieve the following:
I\'m using Django 1.2.3-3+squeeze1 on Debian squeeze with PostgreSQL 8.4.7-0squeeze2 (though I don\'t think PostgreSQL is relevant here), and running Django unit tests based on unittest with the follo
Is it possible to have a set of models just for testing purposes? The idea is that I\'ve written an app that contains some h开发者_开发问答elper abstract model HelperBase. Now I\'d like to provide som
For some of my Django views I\'ve created a decorator that performs Basic HTTP access authentication.However, while writing test cases in Django, it took me a while to work out how to authenticate to
Maybe I don\'t understand how outbox works but from the documentation I understood that it just catches all outgoing mail during testing.