mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-18 04:19:42 +00:00
Add current event events test: FAILING.
This commit is contained in:
@@ -58,3 +58,12 @@ class EventTestCase(TestCase):
|
||||
def test_rig_count(self):
|
||||
# by my count this is 7
|
||||
self.assertEqual(models.Event.objects.rig_count(), 7)
|
||||
|
||||
def test_current_events(self):
|
||||
# by my count 7 + 4 + 1
|
||||
current_events = models.Event.objects.current_events()
|
||||
# for event in current_events:
|
||||
# print event
|
||||
self.assertEqual(len(current_events), 7+4+1)
|
||||
self.assertIn(models.Event.objects.get(name="TE E12"), current_events)
|
||||
|
||||
Reference in New Issue
Block a user