Skip to content

Commit

Permalink
Fixed mypy and test rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiDiwanTT committed Sep 12, 2023
1 parent f60e933 commit fb67c08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions tests/api/mockapi/circulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
from abc import ABC
from collections import defaultdict

from pydantic import BaseSettings

from api.circulation import BaseCirculationAPI, CirculationAPI, HoldInfo, LoanInfo
from api.controller import CirculationManager
from core.integration.settings import BaseSettings
from core.model import DataSource, Hold, Loan
from core.external_search import ExternalSearchIndex
from core.integration.settings import BaseSettings
from core.model import DataSource, Hold, Loan, get_one_or_create
from core.model.configuration import ExternalIntegration
from tests.mocks.search import ExternalSearchIndexFake
Expand Down
1 change: 1 addition & 0 deletions tests/api/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ def test_initialize_alembic_exception(self, caplog: LogCaptureFixture):
caplog.set_level(logging.ERROR)
script.migrate_database = MagicMock(side_effect=CommandError("test"))
script.initialize_database = MagicMock()
script.initialize_search_indexes = MagicMock()

# If the database is initialized, migrate_database() is called.
inspect().has_table.return_value = True
Expand Down

0 comments on commit fb67c08

Please sign in to comment.