Tests migrate instead of syncdb

The latter is obsolete and have been replaced by the former.
This commit is contained in:
Hugo Osvaldo Barrera 2015-12-06 11:40:24 -03:00
parent 87be940822
commit b833f37f95

View file

@ -28,9 +28,7 @@ class ChartbeatTagTestCaseNoSites(TestCase):
class ChartbeatTagTestCaseWithSites(TestCase):
def setUp(self):
from django.core.management import call_command
from django.db.models import loading
loading.cache.loaded = False
call_command("syncdb", verbosity=0)
call_command("migrate", verbosity=0)
def test_rendering_setup_site(self):
site = Site.objects.create(domain="test.com", name="test")