making workout shells from summaries
This commit is contained in:
@@ -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
|
||||
|
||||
2
rowers/tests/testdata/garmindetail3.txt
vendored
Normal file
2
rowers/tests/testdata/garmindetail3.txt
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user