summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_djvu_parse.py1
-rw-r--r--tests/test_issue_db.py2
-rw-r--r--tests/test_refs_transform.py3
-rw-r--r--tests/test_scrub.py2
-rw-r--r--tests/test_transform.py2
-rw-r--r--tests/test_web.py2
-rw-r--r--tests/test_work_pipeline.py4
7 files changed, 9 insertions, 7 deletions
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