Private
Public Access
1
0

fixed two skipping tests

This commit is contained in:
2026-09-28 15:30:05 +02:00
parent 1d1c83ce90
commit 15fd52643f
2 changed files with 5 additions and 4 deletions
+5 -4
View File
@@ -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,8 +322,8 @@ 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"""
from django.test import Client
Binary file not shown.