diff options
author | Jack Morgan <jack.morgan@intel.com> | 2016-08-23 13:36:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-23 13:36:37 +0000 |
commit | 8b19eb63a99014cc1c59d05efe2e1fbe5f98a379 (patch) | |
tree | 7bdec8c03b61122474416d30a3c6d1eba603c702 /tools/pharos-dashboard/booking/tests/test_views.py | |
parent | f94c874069cfaef0f59c92c903876ce3d488e2b0 (diff) | |
parent | 6c993d9e3bd9a7c0fb94d7056e664648dd8d85cb (diff) |
Merge changes from topic 'pharos-dashboard'
* changes:
Create Jira issue for new booking
Remove database migration files
Diffstat (limited to 'tools/pharos-dashboard/booking/tests/test_views.py')
-rw-r--r-- | tools/pharos-dashboard/booking/tests/test_views.py | 4 |
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 b0c4b498..c5dff586 100644 --- a/tools/pharos-dashboard/booking/tests/test_views.py +++ b/tools/pharos-dashboard/booking/tests/test_views.py @@ -19,7 +19,9 @@ class BookingViewTestCase(TestCase): def setUp(self): self.client = Client() self.slave = JenkinsSlave.objects.create(name='test', url='test') - self.res1 = Resource.objects.create(name='res1', slave=self.slave, description='x', url='x') + self.owner = User.objects.create(username='owner') + self.res1 = Resource.objects.create(name='res1', slave=self.slave, description='x', + url='x',owner=self.owner) self.user1 = User.objects.create(username='user1') self.user1.set_password('user1') self.user1profile = UserProfile.objects.create(user=self.user1) |