aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-27 14:33:09 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-27 18:25:58 -0700
commitb4d0bfb643842e6070a4ee36cfc52e2292e3b5ba (patch)
tree1988743c61f5c053148d66f6939ff32f398ae06e /tests
parent956e64f47f7d47f2539cd6575c25ec0b6a33e567 (diff)
downloadfatcat-scholar-b4d0bfb643842e6070a4ee36cfc52e2292e3b5ba.tar.gz
fatcat-scholar-b4d0bfb643842e6070a4ee36cfc52e2292e3b5ba.zip
make fmt (black 21.9b0)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_web.py6
-rw-r--r--tests/test_work_pipeline.py5
2 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_web.py b/tests/test_web.py
index 8225731..3ffab87 100644
--- a/tests/test_web.py
+++ b/tests/test_web.py
@@ -178,7 +178,8 @@ def test_access_redirect_fallback(client: Any, mocker: Any) -> None:
fatcat_get_work_raw = mocker.patch("fatcat_openapi_client.DefaultApi.get_work")
fatcat_get_work_raw.side_effect = [
fatcat_openapi_client.WorkEntity(
- state="active", ident="wwwwwwwwwwwwwwwwwwwwwwwwww",
+ state="active",
+ ident="wwwwwwwwwwwwwwwwwwwwwwwwww",
)
] * 4
fatcat_get_work_releases_raw = mocker.patch(
@@ -205,7 +206,8 @@ def test_access_redirect_fallback(client: Any, mocker: Any) -> None:
ident="ffffffffffffffffffffffffff",
urls=[
fatcat_openapi_client.FileUrl(
- rel="web", url="https://blarg.example.com",
+ rel="web",
+ url="https://blarg.example.com",
),
fatcat_openapi_client.FileUrl(
rel="webarchive",
diff --git a/tests/test_work_pipeline.py b/tests/test_work_pipeline.py
index d0512cf..55cc7d8 100644
--- a/tests/test_work_pipeline.py
+++ b/tests/test_work_pipeline.py
@@ -77,7 +77,10 @@ def test_run_transform(mocker: Any) -> None:
{
"doi": "10.7717/peerj.4375",
"indexed": "2020-07-07T02:15:52.98309+00:00",
- "record": {"title": "something", "TODO_better_object": 3,},
+ "record": {
+ "title": "something",
+ "TODO_better_object": 3,
+ },
}
],
)