adding teardown
This commit is contained in:
@@ -15,7 +15,7 @@ from rowers import dataprep
|
||||
|
||||
@pytest.mark.django_db
|
||||
@override_settings(TESTING=True)
|
||||
class GarminObjects(TransactionTestCase):
|
||||
class GarminObjects(DjangoTestCase):
|
||||
def setUp(self):
|
||||
self.c = Client()
|
||||
self.u = User.objects.create_user('john',
|
||||
@@ -35,7 +35,10 @@ class GarminObjects(TransactionTestCase):
|
||||
|
||||
self.nu = datetime.datetime.now()
|
||||
|
||||
|
||||
def tearDown(self):
|
||||
ws = Workout.objects.filter(user=self.r)
|
||||
for w in ws:
|
||||
w.delete()
|
||||
|
||||
def test_garmin_push_summaries(self):
|
||||
data = json.load(open('rowers/tests/testdata/garminsummarydata.txt','r'))
|
||||
|
||||
Reference in New Issue
Block a user