diff --git a/arkindex/documents/tests/consumers/test_ml_results_consumer.py b/arkindex/documents/tests/consumers/test_ml_results_consumer.py index 6d66a5ef1479746e2e22064da663420374864ba1..b3b3bb3110aa28898536a3280b0edcc13d06c0e7 100644 --- a/arkindex/documents/tests/consumers/test_ml_results_consumer.py +++ b/arkindex/documents/tests/consumers/test_ml_results_consumer.py @@ -1,5 +1,5 @@ from unittest.mock import patch -from asyncmock import AsyncMock +from mock import AsyncMock from django.db.models import Q from arkindex_common.enums import TranscriptionType, MetaType, EntityType from arkindex.project.polygon import Polygon diff --git a/arkindex/documents/tests/test_admin_api.py b/arkindex/documents/tests/test_admin_api.py index 7a46859ddd750b102ac8f05d2dbc23ed42937ff4..165b219fcca1c9ce3060cddf23a5bbd30858b0a4 100644 --- a/arkindex/documents/tests/test_admin_api.py +++ b/arkindex/documents/tests/test_admin_api.py @@ -1,5 +1,5 @@ from unittest.mock import patch -from asyncmock import AsyncMock +from mock import AsyncMock from django.urls import reverse from rest_framework import status from arkindex.project.tests import FixtureTestCase diff --git a/arkindex/documents/tests/test_corpus.py b/arkindex/documents/tests/test_corpus.py index 337261e6892ec6e3f33a6466d7a9de4b8d02ccfc..54a061aba05d27edd9aae4d6050373432ad998f3 100644 --- a/arkindex/documents/tests/test_corpus.py +++ b/arkindex/documents/tests/test_corpus.py @@ -1,4 +1,4 @@ -from asyncmock import AsyncMock +from mock import AsyncMock from unittest.mock import patch from django.contrib.auth.models import AnonymousUser from django.db.models import Model, ProtectedError diff --git a/arkindex/documents/tests/test_ml_results.py b/arkindex/documents/tests/test_ml_results.py index 23cdc5710009885f7dfe76f5850b16cfaa69e37c..acec3ff2e4fe4b803447e0fe0a243f9e5f6ef271 100644 --- a/arkindex/documents/tests/test_ml_results.py +++ b/arkindex/documents/tests/test_ml_results.py @@ -1,4 +1,4 @@ -from asyncmock import AsyncMock +from mock import AsyncMock from unittest.mock import patch from django.urls import reverse from rest_framework import status diff --git a/arkindex/documents/tests/test_pagexml.py b/arkindex/documents/tests/test_pagexml.py index b2994b11c57e1ead55f90b1e2d57ecb22bd0c3a0..abcb2319a9214820b8a2516746b2ca947a4d0bb0 100644 --- a/arkindex/documents/tests/test_pagexml.py +++ b/arkindex/documents/tests/test_pagexml.py @@ -1,6 +1,6 @@ from pathlib import Path from unittest.mock import patch -from asyncmock import AsyncMock +from mock import AsyncMock from django.urls import reverse from rest_framework import status from arkindex.project.tests import FixtureAPITestCase diff --git a/arkindex/documents/tests/test_transcription_create.py b/arkindex/documents/tests/test_transcription_create.py index 4bb68e8087c578884bf27c41f895fe225bdf37c8..e1ff912fdff41345d55d8599a932ddc3c9f807ae 100644 --- a/arkindex/documents/tests/test_transcription_create.py +++ b/arkindex/documents/tests/test_transcription_create.py @@ -1,6 +1,6 @@ from django.urls import reverse from unittest.mock import patch -from asyncmock import AsyncMock +from mock import AsyncMock from rest_framework import status from arkindex.project.tests import FixtureAPITestCase from arkindex.project.polygon import Polygon diff --git a/arkindex/himanis/tests/test_acts_importer.py b/arkindex/himanis/tests/test_acts_importer.py index e49d5e1a7144a1295e025f927eac7060aa6c806d..6400d8ec7c25e8e1611933f8d93dbbeafcdac3b4 100644 --- a/arkindex/himanis/tests/test_acts_importer.py +++ b/arkindex/himanis/tests/test_acts_importer.py @@ -1,6 +1,6 @@ from unittest.mock import patch from pathlib import Path -from asyncmock import AsyncMock +from mock import AsyncMock from arkindex_common.enums import MetaType from arkindex.project.tests import FixtureTestCase from arkindex.project.polygon import Polygon diff --git a/arkindex/images/tests/test_perform_check.py b/arkindex/images/tests/test_perform_check.py index e75077b8f13fed28a7eacce0e4aa80b6239aaa88..d37c4c4453305c8dbe07fd2bd0a9a5e4508930e3 100644 --- a/arkindex/images/tests/test_perform_check.py +++ b/arkindex/images/tests/test_perform_check.py @@ -1,5 +1,5 @@ from unittest.mock import patch, call -from asyncmock import AsyncMock +from mock import AsyncMock from arkindex.project.aws import S3FileStatus from arkindex.project.tests import FixtureTestCase import requests diff --git a/tests-requirements.txt b/tests-requirements.txt index 8381422153315868f5fa9f0085c686e5a0b3a6ae..06985e8590ee9062e85166409df0e47617c121e1 100644 --- a/tests-requirements.txt +++ b/tests-requirements.txt @@ -4,4 +4,4 @@ django-nose coverage uritemplate==3 responses -asyncmock==0.4.1 +mock~=4.0.0