summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/booking/tests/test_views.py
diff options
context:
space:
mode:
authorJack Morgan <jack.morgan@intel.com>2016-08-22 14:13:24 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-22 14:13:24 +0000
commit33ec3fd340127c0aad9635fd06ac1959a6aec5f3 (patch)
tree5ee14933ba18f06bf125652516a09f870908f0e5 /tools/pharos-dashboard/booking/tests/test_views.py
parentc121ae90322dac5cf72e98450c89ff7e5131b20c (diff)
parent66eb4d851e63d20031502ec0c96aaabe34c6fd32 (diff)
Merge "Implement periodic tasks"
Diffstat (limited to 'tools/pharos-dashboard/booking/tests/test_views.py')
-rw-r--r--tools/pharos-dashboard/booking/tests/test_views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pharos-dashboard/booking/tests/test_views.py b/tools/pharos-dashboard/booking/tests/test_views.py
index f5b75d14..4f5ee8bd 100644
--- a/tools/pharos-dashboard/booking/tests/test_views.py
+++ b/tools/pharos-dashboard/booking/tests/test_views.py
@@ -12,12 +12,14 @@ from registration.forms import User
from account.models import UserProfile
from booking.models import Booking
from dashboard.models import Resource
+from jenkins.models import JenkinsSlave
class BookingViewTestCase(TestCase):
def setUp(self):
self.client = Client()
- self.res1 = Resource.objects.create(name='res1', slavename='s1', description='x', url='x')
+ self.slave = JenkinsSlave.objects.create(name='test', url='test')
+ self.res1 = Resource.objects.create(name='res1', slave=self.slave, description='x', url='x')
self.user1 = User.objects.create(username='user1')
self.user1.set_password('user1')
self.user1profile = UserProfile.objects.create(user=self.user1)