testdata
This commit is contained in:
parent
86d1f452ba
commit
3bf01181ec
1
fowl/game/fixtures/testdata.json
Normal file
1
fowl/game/fixtures/testdata.json
Normal file
File diff suppressed because one or more lines are too long
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user