Skip to content

Commit 2e379de

Browse files
committed
Fix test for automatic device allocation
1 parent a91d0a3 commit 2e379de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

studygroups/tests/test_device_allocation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def setUp(self):
4545

4646

4747
def test_create_study_group_with_limit(self):
48+
self.assertEquals(1, DeviceAllocation.objects.count())
49+
DeviceAllocation.objects.all().delete()
4850
c = Client()
4951
c.login(username='bob@example.net', password='password')
5052
data = {
@@ -119,6 +121,9 @@ def test_create_study_group_with_limit(self):
119121

120122

121123
def test_update_learning_circle(self):
124+
self.assertEquals(1, DeviceAllocation.objects.count())
125+
DeviceAllocation.objects.all().delete()
126+
122127
self.facilitator.profile.email_confirmed_at = timezone.now()
123128
self.facilitator.profile.save()
124129

0 commit comments

Comments
 (0)