aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/harvest_pubmed.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-07-01 18:35:37 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-07-01 18:35:37 -0700
commitce37bdcd382c857383aad219de53d2432c07f1e7 (patch)
tree9dd1b9421f7650358acab4e9d39fb1e33d3bc31d /python/tests/harvest_pubmed.py
parent30905f1effb33c3ef193d084120aa3fbd75d0b9b (diff)
downloadfatcat-ce37bdcd382c857383aad219de53d2432c07f1e7.tar.gz
fatcat-ce37bdcd382c857383aad219de53d2432c07f1e7.zip
lint (flake8) python test files
Diffstat (limited to 'python/tests/harvest_pubmed.py')
-rw-r--r--python/tests/harvest_pubmed.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/python/tests/harvest_pubmed.py b/python/tests/harvest_pubmed.py
index f8db46b6..58bc4226 100644
--- a/python/tests/harvest_pubmed.py
+++ b/python/tests/harvest_pubmed.py
@@ -2,14 +2,11 @@
Test pubmed FTP harvest.
"""
-import datetime
-import json
import os
-
+import datetime
import pytest
from fatcat_tools.harvest import *
-from fatcat_tools.harvest.pubmed import generate_date_file_map
def test_pubmed_harvest_date(mocker):
@@ -77,4 +74,3 @@ def test_pubmed_harvest_date_no_pmid(mocker):
# The file has not PMID, not importable.
with pytest.raises(ValueError):
harvester.fetch_date(datetime.datetime.strptime(test_date, '%Y-%m-%d'))
-