diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-22 22:04:39 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-22 22:04:39 -0800 |
commit | e0f70bbbcbcb6232cfb508ad5c0ae637391c4871 (patch) | |
tree | 7d7c83a04a3776754476b123d70e23dfa6cf297d /python/tests/import_crossref.py | |
parent | 09475b87821142c5cd36c6b90fb97deb2a058312 (diff) | |
download | fatcat-e0f70bbbcbcb6232cfb508ad5c0ae637391c4871.tar.gz fatcat-e0f70bbbcbcb6232cfb508ad5c0ae637391c4871.zip |
refactor remaining importers
Diffstat (limited to 'python/tests/import_crossref.py')
-rw-r--r-- | python/tests/import_crossref.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/tests/import_crossref.py b/python/tests/import_crossref.py index 5e0a150f..db49bb7f 100644 --- a/python/tests/import_crossref.py +++ b/python/tests/import_crossref.py @@ -17,13 +17,12 @@ def crossref_importer_existing(api): def test_crossref_importer_batch(crossref_importer): with open('tests/files/crossref-works.2018-01-21.badsample.json', 'r') as f: - pusher = JsonLinePusher(crossref_importer, f) - pusher.run() + JsonLinePusher(crossref_importer, f).run() def test_crossref_importer(crossref_importer): with open('tests/files/crossref-works.2018-01-21.badsample.json', 'r') as f: - pusher = JsonLinePusher(crossref_importer, f) - pusher.run() + crossref_importer.bezerk_mode = True + JsonLinePusher(crossref_importer, f).run() # fetch most recent editgroup changes = crossref_importer.api.get_changelog(limit=1) eg = changes[0].editgroup |