Skip to content

Commit

Permalink
Remove unused imports from code.py & conftest.py (internetarchive#3447)
Browse files Browse the repository at this point in the history
* remove unused imports from code.py & conftest.py

* ignore F401 flake8

* ignore F401 flake8

Co-authored-by: Shubham Kumar <skr@pop-os.localdomain>
  • Loading branch information
2 people authored and Sabreen-Parveen committed Feb 5, 2021
1 parent 6ef2f1e commit 5ed1734
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 0 additions & 5 deletions openlibrary/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ def setup():

load_views()

# load actions
from . import actions

logger.info("loading complete.")

def setup_logging():
Expand All @@ -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()
8 changes: 3 additions & 5 deletions openlibrary/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""pytest configutation for openlibrary
"""
import glob
import pytest
import web

Expand All @@ -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):
Expand Down

0 comments on commit 5ed1734

Please sign in to comment.