summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/crossref.py2
-rw-r--r--python/tests/fixtures.py8
-rw-r--r--python/tests/grobid_metadata_importer_test.py (renamed from python/tests/grobid_metadata_importer.py)2
-rw-r--r--python/tests/importer.py2
-rw-r--r--python/tests/issn.py2
-rw-r--r--python/tests/matched_importer_test.py (renamed from python/tests/matched_importer.py)2
-rw-r--r--python/tests/orcid.py2
-rw-r--r--python/tests/routes.py1
-rw-r--r--python/tests/transform_tests.py (renamed from python/tests/entity_helpers.py)4
9 files changed, 12 insertions, 13 deletions
diff --git a/python/tests/crossref.py b/python/tests/crossref.py
index 59be9886..04ac5e8e 100644
--- a/python/tests/crossref.py
+++ b/python/tests/crossref.py
@@ -1,7 +1,7 @@
import json
import pytest
-from fatcat.crossref_importer import FatcatCrossrefImporter
+from fatcat_tools.crossref_importer import FatcatCrossrefImporter
@pytest.fixture(scope="function")
diff --git a/python/tests/fixtures.py b/python/tests/fixtures.py
index 6ff05495..6f68cf5c 100644
--- a/python/tests/fixtures.py
+++ b/python/tests/fixtures.py
@@ -4,14 +4,14 @@ import time
import json
import signal
import pytest
-import fatcat
+import fatcat_web
@pytest.fixture
def full_app():
- fatcat.app.testing = True
- fatcat.app.debug = False
- return fatcat.app
+ fatcat_web.app.testing = True
+ fatcat_web.app.debug = False
+ return fatcat_web.app
@pytest.fixture
def app(full_app):
diff --git a/python/tests/grobid_metadata_importer.py b/python/tests/grobid_metadata_importer_test.py
index 2c8565aa..502ca74a 100644
--- a/python/tests/grobid_metadata_importer.py
+++ b/python/tests/grobid_metadata_importer_test.py
@@ -3,7 +3,7 @@ import os
import json
import base64
import pytest
-from fatcat.grobid_metadata_importer import FatcatGrobidMetadataImporter
+from fatcat_tools.grobid_metadata_importer import FatcatGrobidMetadataImporter
"""
WARNING: these tests are currently very fragile because they have database
diff --git a/python/tests/importer.py b/python/tests/importer.py
index 22af37ed..0de86635 100644
--- a/python/tests/importer.py
+++ b/python/tests/importer.py
@@ -1,7 +1,7 @@
import pytest
-from fatcat.importer_common import FatcatImporter
+from fatcat_tools.importer_common import FatcatImporter
def test_issnl_mapping_lookup():
diff --git a/python/tests/issn.py b/python/tests/issn.py
index fff112f7..76c8aecb 100644
--- a/python/tests/issn.py
+++ b/python/tests/issn.py
@@ -1,6 +1,6 @@
import pytest
-from fatcat.issn_importer import FatcatIssnImporter
+from fatcat_tools.issn_importer import FatcatIssnImporter
@pytest.fixture(scope="function")
diff --git a/python/tests/matched_importer.py b/python/tests/matched_importer_test.py
index 9cc6aa32..4042eabb 100644
--- a/python/tests/matched_importer.py
+++ b/python/tests/matched_importer_test.py
@@ -1,7 +1,7 @@
import json
import pytest
-from fatcat.matched_importer import FatcatMatchedImporter
+from fatcat_tools.matched_importer import FatcatMatchedImporter
@pytest.fixture(scope="function")
diff --git a/python/tests/orcid.py b/python/tests/orcid.py
index ae3d0d0b..f8228cc0 100644
--- a/python/tests/orcid.py
+++ b/python/tests/orcid.py
@@ -1,7 +1,7 @@
import json
import pytest
-from fatcat.orcid_importer import FatcatOrcidImporter
+from fatcat_tools.orcid_importer import FatcatOrcidImporter
@pytest.fixture(scope="function")
diff --git a/python/tests/routes.py b/python/tests/routes.py
index 8607e7c0..2e208d22 100644
--- a/python/tests/routes.py
+++ b/python/tests/routes.py
@@ -2,7 +2,6 @@
import json
import tempfile
import pytest
-import fatcat
from fatcat_client.rest import ApiException
from fixtures import *
diff --git a/python/tests/entity_helpers.py b/python/tests/transform_tests.py
index dd6fa00a..669c2526 100644
--- a/python/tests/entity_helpers.py
+++ b/python/tests/transform_tests.py
@@ -1,8 +1,8 @@
import json
import pytest
-from fatcat.crossref_importer import FatcatCrossrefImporter
-from fatcat.entity_helpers import *
+from fatcat_tools.crossref_importer import FatcatCrossrefImporter
+from fatcat_tools.transforms import *
from crossref import crossref_importer