Commit 67dc7ca2 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

our base view test setup now gives a room to our demo student

parent c19b9535
......@@ -13,8 +13,8 @@ from accounts.models import Student
class RoomlistViewTest(TestCase):
def setUp(self):
wilson = Building.objects.create(name='Wilson', neighbourhood='sh', campus='ff')
wilson_third = Floor.objects.create(building=wilson, number=3)
wilson_313 = Room.objects.create(floor=wilson_third, number=313)
wilson_third = Floor.objects.create(building=wilson, number='3')
wilson_313 = Room.objects.create(floor=wilson_third, number='313')
......@@ -27,7 +27,7 @@ class RoomlistViewTest(TestCase):
# .create_user() includes .save()
gmason = Student.objects.create(user=user)
gmason = Student.objects.create(user=user, room=wilson_313)
def client_login(self):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment