Skip to content

Commit

Permalink
Fix mypy and broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Sep 3, 2024
1 parent 8df05db commit 378a13a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/manager/api/controller/test_playtime_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from unittest.mock import patch

import flask
from isodate import parse_datetime
from sqlalchemy.exc import IntegrityError

from palace.manager.api.controller.playtime_entries import (
Expand Down Expand Up @@ -42,7 +41,7 @@ def test_track_playtime(self, circulation_fixture: CirculationControllerFixture)
patron = db.patron()

loan_exists_date_str = date_string(hour=12, minute=0)
inscope_loan_start = parse_datetime(loan_exists_date_str)
inscope_loan_start = datetime.datetime.fromisoformat(loan_exists_date_str)
inscope_loan_end = inscope_loan_start + datetime.timedelta(days=14)

loan, _ = pool.loan_to(
Expand Down

0 comments on commit 378a13a

Please sign in to comment.