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