fixed two skipping tests
This commit is contained in:
@@ -69,8 +69,9 @@ class FITExportLevel4Tests(TestCase):
|
|||||||
self.assertTrue(os.path.exists(fit_filename))
|
self.assertTrue(os.path.exists(fit_filename))
|
||||||
self.assertGreater(os.path.getsize(fit_filename), 0)
|
self.assertGreater(os.path.getsize(fit_filename), 0)
|
||||||
|
|
||||||
# Verify response structure
|
# exporttofit returns None in the normal case, and a dict only
|
||||||
self.assertIsInstance(res, dict)
|
# when there's something notable to report (see docstring)
|
||||||
|
self.assertTrue(res is None or isinstance(res, dict))
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
if os.path.exists(fit_filename):
|
if os.path.exists(fit_filename):
|
||||||
@@ -321,8 +322,8 @@ class FITExportIntegrationTests(TestCase):
|
|||||||
email='test4@example.com',
|
email='test4@example.com',
|
||||||
password='testpass123'
|
password='testpass123'
|
||||||
)
|
)
|
||||||
self.rower = Rower.objects.create(user=self.user)
|
self.rower = Rower.objects.create(user=self.user, gdproptin=True, ftpset=True)
|
||||||
|
|
||||||
def test_export_view_creates_fit_file(self):
|
def test_export_view_creates_fit_file(self):
|
||||||
"""Test that the export view successfully creates a FIT file"""
|
"""Test that the export view successfully creates a FIT file"""
|
||||||
from django.test import Client
|
from django.test import Client
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user