This commit is contained in:
James Turk 2012-05-26 15:13:09 -04:00
parent 86d1f452ba
commit 3bf01181ec
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,8 +3,9 @@ from django.core.management import call_command
from .models import Match, Event from .models import Match, Event
class MatchTest(TestCase): class MatchTest(TestCase):
fixtures = ['testdata']
def setUp(self): def setUp(self):
call_command('loadstars')
self.wm29 = Event.objects.create(name='Wrestlemania 29', date='2012-04-01') self.wm29 = Event.objects.create(name='Wrestlemania 29', date='2012-04-01')
def test_display(self): def test_display(self):
@ -195,8 +196,7 @@ class MatchTest(TestCase):
class EventTest(TestCase): class EventTest(TestCase):
def setUp(self): fixtures = ['testdata']
call_command('loadstars')
def test_points(self): def test_points(self):
smackdown = Event.objects.create(name='smackdown', date='2012-01-01') smackdown = Event.objects.create(name='smackdown', date='2012-01-01')