2018-02-27 21:20:26 +00:00
|
|
|
diff -Nurp source.orig/pytrainer/test/core/test_activity.py source/pytrainer/test/core/test_activity.py
|
|
|
|
--- source.orig/pytrainer/test/core/test_activity.py 2018-02-27 22:15:32.078243354 +0100
|
|
|
|
+++ source/pytrainer/test/core/test_activity.py 2018-02-27 22:16:33.936867052 +0100
|
|
|
|
@@ -92,7 +92,7 @@ class ActivityTest(unittest.TestCase):
|
2017-09-30 17:06:27 +00:00
|
|
|
self.assertEquals(self.activity.time, self.activity.duration)
|
|
|
|
|
|
|
|
def test_activity_starttime(self):
|
|
|
|
- self.assertEquals(self.activity.starttime, '12:58:23 PM')
|
|
|
|
+ self.assertEquals(self.activity.starttime, '12:58:23')
|
|
|
|
|
|
|
|
def test_activity_time_tuple(self):
|
|
|
|
self.assertEquals(self.activity.time_tuple, (2, 3, 46))
|
2018-02-27 21:20:26 +00:00
|
|
|
diff -Nurp source.orig/pytrainer/test/imports/test_garmintcxv2.py source/pytrainer/test/imports/test_garmintcxv2.py
|
|
|
|
--- source.orig/pytrainer/test/imports/test_garmintcxv2.py 2018-02-27 22:15:32.079243364 +0100
|
|
|
|
+++ source/pytrainer/test/imports/test_garmintcxv2.py 2018-02-27 22:17:10.778333751 +0100
|
|
|
|
@@ -39,7 +39,7 @@ class GarminTCXv2Test(unittest.TestCase)
|
2017-09-30 17:06:27 +00:00
|
|
|
self.fail()
|
|
|
|
|
|
|
|
def test_workout_summary(self):
|
|
|
|
- summary = [(0, False, '2012-10-14T12:02:42', '10.12', '00:39:51', 'Running')]
|
|
|
|
+ summary = [(0, False, '2012-10-14T10:02:42', '10.12', '00:39:51', 'Running')]
|
|
|
|
try:
|
|
|
|
current_path = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
data_path = os.path.dirname(os.path.dirname(os.path.dirname(current_path))) + "/"
|
2018-02-27 21:20:26 +00:00
|
|
|
@@ -52,7 +52,7 @@ class GarminTCXv2Test(unittest.TestCase)
|
|
|
|
self.fail()
|
|
|
|
|
|
|
|
def test_summary_in_database(self):
|
|
|
|
- summary = [(0, True, '2012-10-14T12:02:42', '10.12', '00:39:51', 'Running')]
|
|
|
|
+ summary = [(0, True, '2012-10-14T10:02:42', '10.12', '00:39:51', 'Running')]
|
|
|
|
activity = Activity(date_time_utc='2012-10-14T10:02:42Z', sport_id='1')
|
|
|
|
self.ddbb.session.add(activity)
|
2018-05-10 19:41:40 +00:00
|
|
|
self.ddbb.session.commit(
|
2018-02-27 21:20:26 +00:00
|
|
|
diff -Nurp source.orig/pytrainer/test/lib/test_date.py source/pytrainer/test/lib/test_date.py
|
2018-05-10 19:41:40 +00:00
|
|
|
--- source.orig/pytrainer/test/lib/test_date.py 2018-05-10 21:15:22.196275555 +0200
|
|
|
|
+++ source/pytrainer/test/lib/test_date.py 2018-05-10 21:22:43.647870401 +0200
|
|
|
|
@@ -47,7 +47,7 @@ class DateFunctionTest(unittest.TestCase
|
2017-09-30 17:06:27 +00:00
|
|
|
def test_getDateTime(self):
|
|
|
|
utctime, localtime = getDateTime('Tue Nov 24 17:29:05 UTC 2015')
|
|
|
|
self.assertEqual(datetime.datetime(2015, 11, 24, 17, 29, 5, tzinfo=tzutc()), utctime)
|
|
|
|
- self.assertEqual(datetime.datetime(2015, 11, 24, 19, 29, 5, tzinfo=tzlocal()), localtime)
|
|
|
|
+ self.assertEqual(datetime.datetime(2015, 11, 24, 17, 29, 5, tzinfo=tzlocal()), localtime)
|
2018-05-10 19:41:40 +00:00
|
|
|
|
|
|
|
class DateRangeTest(unittest.TestCase):
|
|
|
|
|