From 14f587e8bab2f69873c31369fcc788dd85c55285 Mon Sep 17 00:00:00 2001 From: elParaguayo Date: Sat, 29 Jun 2024 22:11:56 +0100 Subject: [PATCH] Update tests v2 --- test/widget/test_strava.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/widget/test_strava.py b/test/widget/test_strava.py index 499c9b9a..512d4ff1 100644 --- a/test/widget/test_strava.py +++ b/test/widget/test_strava.py @@ -25,7 +25,6 @@ import libqtile.confreader import libqtile.layout import pytest -from pint import Unit from stravalib.model import Activity from qtile_extras.widget.strava import StravaWidget @@ -35,7 +34,7 @@ Activity( name="Test Activity 1", start_date_local=datetime(2021, 11, 20, 9, 0), - distance=Unit("m") * 10000, + distance=10000, elapsed_time=45 * 60, moving_time=45 * 60, sport_type="Run", @@ -43,7 +42,7 @@ Activity( name="Test Activity 2", start_date_local=datetime(2021, 11, 21, 7, 10), - distance=Unit("m") * 21100, + distance=21100, elapsed_time=105 * 60, moving_time=105 * 60, sport_type="Run",