Skip to content

Commit

Permalink
remove check the current_period is in progress
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
bain3 committed Sep 5, 2024
1 parent 76907c4 commit 5b8f338
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pronotepy/test_pronotepy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b8f338

Please sign in to comment.