On Tue, Jan 27, 2009 at 3:51 PM, Oleg Oltar <oltarase...@gmail.com> wrote:
> Hi! > I am trying to create few nose test for my application. > I need to test registration/login, so want to create a test sqlite3 > database, and pre-populate it with some data. > No sure how to do it. > > I created a setup method: > def setup(): > setup_test_environment() > create_test_db() > > But getting an exception on from django.db.backends.creation import > create_test_db.... > > Please help me to find it out how to use the create_test_db function to > create the db > > Also. How to add some data there without running tests first? > > I know nothing of nose, but: http://www.assembla.com/wiki/show/nosedjango says it is a plugin for nosetests that supports fixture loading & test database setup and teardown, which seems to be what you are looking for? Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---