From 956e64f47f7d47f2539cd6575c25ec0b6a33e567 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 27 Oct 2021 14:19:29 -0700 Subject: re-style imports (isort) on all core python files --- tests/test_djvu_parse.py | 1 + tests/test_issue_db.py | 2 +- tests/test_refs_transform.py | 3 ++- tests/test_scrub.py | 2 +- tests/test_transform.py | 2 +- tests/test_web.py | 2 +- tests/test_work_pipeline.py | 4 ++-- 7 files changed, 9 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/test_djvu_parse.py b/tests/test_djvu_parse.py index 777f8bf..621bf2e 100644 --- a/tests/test_djvu_parse.py +++ b/tests/test_djvu_parse.py @@ -1,4 +1,5 @@ import io + from fatcat_scholar.djvu import djvu_extract_leaf_texts diff --git a/tests/test_issue_db.py b/tests/test_issue_db.py index 9fdab94..6aab879 100644 --- a/tests/test_issue_db.py +++ b/tests/test_issue_db.py @@ -1,8 +1,8 @@ import elasticsearch import fatcat_openapi_client -from fatcat_scholar.issue_db import IssueDB from fatcat_scholar.config import settings +from fatcat_scholar.issue_db import IssueDB def test_issue_db_basics() -> None: diff --git a/tests/test_refs_transform.py b/tests/test_refs_transform.py index 078b73b..0300fd5 100644 --- a/tests/test_refs_transform.py +++ b/tests/test_refs_transform.py @@ -1,8 +1,9 @@ import json + from fatcat_openapi_client import ReleaseEntity from fatcat_scholar.grobid2json import teixml2json -from fatcat_scholar.transform import refs_from_grobid, refs_from_crossref +from fatcat_scholar.transform import refs_from_crossref, refs_from_grobid def test_transform_refs_grobid() -> None: diff --git a/tests/test_scrub.py b/tests/test_scrub.py index 063478e..37faebb 100644 --- a/tests/test_scrub.py +++ b/tests/test_scrub.py @@ -1,4 +1,4 @@ -from fatcat_scholar.schema import scrub_text, clean_str +from fatcat_scholar.schema import clean_str, scrub_text def test_scrub() -> None: diff --git a/tests/test_transform.py b/tests/test_transform.py index 927c13b..42f51d3 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -1,7 +1,7 @@ from fatcat_openapi_client import ReleaseEntity -from fatcat_scholar.schema import * from fatcat_scholar.api_entities import * +from fatcat_scholar.schema import * from fatcat_scholar.transform import * diff --git a/tests/test_web.py b/tests/test_web.py index d9cfab6..8225731 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -1,9 +1,9 @@ import json from typing import Any +import fatcat_openapi_client import pytest from fastapi.testclient import TestClient -import fatcat_openapi_client from fatcat_scholar.web import app diff --git a/tests/test_work_pipeline.py b/tests/test_work_pipeline.py index 977a708..d0512cf 100644 --- a/tests/test_work_pipeline.py +++ b/tests/test_work_pipeline.py @@ -1,12 +1,12 @@ import responses +from fatcat_scholar.config import settings from fatcat_scholar.issue_db import IssueDB from fatcat_scholar.sandcrawler import ( - SandcrawlerPostgrestClient, SandcrawlerMinioClient, + SandcrawlerPostgrestClient, ) from fatcat_scholar.work_pipeline import * -from fatcat_scholar.config import settings @responses.activate -- cgit v1.2.3