From 5b8f338dea7df460bb2871463e5ca09fe949356d Mon Sep 17 00:00:00 2001 From: bain Date: Thu, 5 Sep 2024 22:03:46 +0200 Subject: [PATCH] remove check the current_period is in progress `current_period` may not actually be always currently in progress. To add to injury, when the demo instance doesn't update it's database, the test fails. --- pronotepy/test_pronotepy.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pronotepy/test_pronotepy.py b/pronotepy/test_pronotepy.py index a969fff..4b9c7d7 100644 --- a/pronotepy/test_pronotepy.py +++ b/pronotepy/test_pronotepy.py @@ -40,13 +40,6 @@ def test_periods(self) -> None: def test_current_period(self) -> None: p = client.current_period self.assertIsNotNone(p) - pronote_time = pronotepy.Util.datetime_parse( - client.func_options["donneesSec"]["donnees"]["DateServeurHttp"]["V"] - ) - self.assertTrue( - p.start < pronote_time < p.end, - "current_period is not in progress", - ) def test_homework(self) -> None: start = client.start_day