diff --git a/openlibrary/code.py b/openlibrary/code.py index 44236358a22e..123d086b4542 100644 --- a/openlibrary/code.py +++ b/openlibrary/code.py @@ -32,9 +32,6 @@ def setup(): load_views() - # load actions - from . import actions - logger.info("loading complete.") def setup_logging(): @@ -51,7 +48,5 @@ def setup_logging(): def load_views(): """Registers all views by loading all view modules. """ - from .views import showmarc - from .views import loanstats setup() diff --git a/openlibrary/conftest.py b/openlibrary/conftest.py index 06bdc7a47574..900410b41c18 100644 --- a/openlibrary/conftest.py +++ b/openlibrary/conftest.py @@ -1,6 +1,5 @@ """pytest configutation for openlibrary """ -import glob import pytest import web @@ -12,10 +11,9 @@ from openlibrary.i18n import gettext from openlibrary.core import helpers -from openlibrary.mocks.mock_infobase import mock_site -from openlibrary.mocks.mock_ia import mock_ia -from openlibrary.mocks.mock_memcache import mock_memcache -from openlibrary.mocks.mock_ol import ol +from openlibrary.mocks.mock_infobase import mock_site # noqa: F401 +from openlibrary.mocks.mock_ia import mock_ia # noqa: F401 +from openlibrary.mocks.mock_memcache import mock_memcache # noqa: F401 @pytest.fixture(autouse=True) def no_requests(monkeypatch):