From 15fd52643f17c5036965504c501792d60b99c285 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Mon, 28 Sep 2026 15:30:05 +0200 Subject: [PATCH] fixed two skipping tests --- rowers/tests/test_fit_export.py | 9 +++++---- rowers/tests/testdata/testdata.tcx.gz | Bin 3989 -> 3989 bytes 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rowers/tests/test_fit_export.py b/rowers/tests/test_fit_export.py index cf9d8f01..695da58b 100644 --- a/rowers/tests/test_fit_export.py +++ b/rowers/tests/test_fit_export.py @@ -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 diff --git a/rowers/tests/testdata/testdata.tcx.gz b/rowers/tests/testdata/testdata.tcx.gz index bdb33837163eaf1a8e1f5c0fa36688445b14ad21..9b93b634c27aba07cd3a8ea0aa08519309e5fc39 100644 GIT binary patch delta 15 WcmbO#KUJPhzMF%iH+>^pKR*B?s04BV delta 15 WcmbO#KUJPhzMF%CHFYCfKR*B