Private
Public Access
1
0

making workout shells from summaries

This commit is contained in:
Sander Roosendaal
2020-07-05 14:36:25 +02:00
parent c0c73319e0
commit 2bacf0716d
5 changed files with 96 additions and 27 deletions

View File

@@ -3,6 +3,8 @@ from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from django.db import transaction
#from __future__ import print_function
from .statements import *
nu = datetime.datetime.now()
@@ -12,7 +14,7 @@ import rowers
@pytest.mark.django_db
@override_settings(TESTING=True)
class GarminObjects(DjangoTestCase):
class GarminObjects(TransactionTestCase):
def setUp(self):
self.c = Client()
self.u = User.objects.create_user('john',
@@ -43,6 +45,9 @@ class GarminObjects(DjangoTestCase):
response = self.c.get('/rowers/workout/'+encoded1+'/', follow=True)
self.assertEqual(response.status_code, 200)
ws = Workout.objects.filter(user=self.r)
self.assertEqual(ws.count(),3)
@pytest.mark.django_db

File diff suppressed because one or more lines are too long