summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-12 11:06:06 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-12 11:06:06 -0700
commit722e4321bfa6431136b1e03f0c9e4ac11903c4df (patch)
treefb688bf672f209616b0f8049b4749cbe8da0d3fa /python/tests
parent1db3bbe11139cee2034cc3f632d13bcce2c03a89 (diff)
downloadfatcat-722e4321bfa6431136b1e03f0c9e4ac11903c4df.tar.gz
fatcat-722e4321bfa6431136b1e03f0c9e4ac11903c4df.zip
extid support for crossref importer
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/crossref.py2
-rw-r--r--python/tests/files/example_map.sqlite3bin0 -> 72704 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/python/tests/crossref.py b/python/tests/crossref.py
index 402195d7..e9814da2 100644
--- a/python/tests/crossref.py
+++ b/python/tests/crossref.py
@@ -6,7 +6,7 @@ from fatcat.crossref_importer import FatcatCrossrefImporter
@pytest.fixture(scope="function")
def crossref_importer():
with open('tests/files/ISSN-to-ISSN-L.snip.txt', 'r') as issn_file:
- yield FatcatCrossrefImporter("http://localhost:9411/v0", issn_file)
+ yield FatcatCrossrefImporter("http://localhost:9411/v0", issn_file, 'tests/files/example_map.sqlite3')
def test_crossref_importer_batch(crossref_importer):
with open('tests/files/crossref-works.2018-01-21.badsample.json', 'r') as f:
diff --git a/python/tests/files/example_map.sqlite3 b/python/tests/files/example_map.sqlite3
new file mode 100644
index 00000000..e9aa1bbe
--- /dev/null
+++ b/python/tests/files/example_map.sqlite3
Binary files differ