aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-06-03 10:58:29 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-06-03 10:58:29 -0700
commitf1c00144d3bec1389c3e046deb190e0d4083cc34 (patch)
tree04509c6c5c5b2eac15393fb5ced7ca456f77edc1
parent39829cdafecbb8f0245d4a22e0bfa3e82eb08600 (diff)
downloadfatcat-f1c00144d3bec1389c3e046deb190e0d4083cc34.tar.gz
fatcat-f1c00144d3bec1389c3e046deb190e0d4083cc34.zip
dblp tests: skip redundant seek(0)
-rw-r--r--python/tests/import_dblp.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/python/tests/import_dblp.py b/python/tests/import_dblp.py
index 340e6237..13a52247 100644
--- a/python/tests/import_dblp.py
+++ b/python/tests/import_dblp.py
@@ -13,11 +13,6 @@ def dblp_importer(api):
yield DblpReleaseImporter(api, tsv_file, bezerk_mode=True)
@pytest.fixture(scope="function")
-def dblp_importer_existing(api):
- with open('tests/files/dblp_container_map.tsv', 'r') as tsv_file:
- yield DblpReleaseImporter(api, tsv_file, bezerk_mode=False)
-
-@pytest.fixture(scope="function")
def dblp_container_importer(api):
with open('tests/files/dblp_container_map.tsv', 'r') as tsv_file:
with open('tests/files/ISSN-to-ISSN-L.snip.txt', 'r') as issn_file:
@@ -98,7 +93,7 @@ def test_dblp_container_importer(dblp_container_importer):
last_index = dblp_container_importer.api.get_changelog(limit=1)[0].index
output_tsv_map.seek(0)
#print(output_tsv_map.read())
- output_tsv_map.seek(0)
+ #output_tsv_map.seek(0)
with open('tests/files/example_dblp_containers.json', 'r') as f:
dblp_container_importer.reset()
dblp_container_importer.bezerk_mode = False