diff mbox

[Branch,~linaro-validation/lava-scheduler/trunk] Rev 208: fix the tests

Message ID 20120830032110.7226.83356.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Aug. 30, 2012, 3:21 a.m. UTC
------------------------------------------------------------
revno: 208
committer: Michael Hudson-Doyle <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Thu 2012-08-30 15:20:40 +1200
message:
  fix the tests
modified:
  lava_scheduler_app/tests.py


--
lp:lava-scheduler
https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk

You are subscribed to branch lp:lava-scheduler.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_scheduler_app/tests.py'
--- lava_scheduler_app/tests.py	2012-03-15 01:41:32 +0000
+++ lava_scheduler_app/tests.py	2012-08-30 03:20:40 +0000
@@ -87,7 +87,7 @@ 
         return device
 
     def make_job_data(self, actions=[], **kw):
-        data = {'actions': actions, 'timeout': 1}
+        data = {'actions': actions, 'timeout': 1, 'health_check': False}
         data.update(kw)
         if 'target' not in data and 'device_type' not in data:
             if DeviceType.objects.all():
@@ -375,7 +375,9 @@ 
 
     def test_getBoardList(self):
         self.factory.make_device(hostname='panda01')
-        self.assertEqual(['panda01'], self.source.getBoardList())
+        self.assertEqual(
+            [{'use_celery': False, 'hostname': 'panda01'}],
+            self.source.getBoardList())
 
     def test_getJobForBoard_returns_json(self):
         device = self.factory.make_device(hostname='panda01')