Re: Django unittests, django.contrib.admin.sites.AlreadyRegistered error

2009-09-07 Thread Karen Tracey
On Mon, Sep 7, 2009 at 6:24 AM, Oleg Oltar wrote: > Hi! > > I am trying to run unitests for one of my application. > > Here is the code of the test (it doesn't do anything yet) > > [snip] > When I run those tests I get an error: > > Installing index for goserver.Game model > . > -

Django unittests, django.contrib.admin.sites.AlreadyRegistered error

2009-09-07 Thread Oleg Oltar
Hi! I am trying to run unitests for one of my application. Here is the code of the test (it doesn't do anything yet) import os import re #import unittest from django.core import management from django.test import TestCase from django.test.client import Client from django.core import mail from d