Skip to content

Commit ea0e8e9

Browse files
fredkinghamdavidmiller
authored andcommitted
removes other mock depenencies
1 parent d1d1f3c commit ea0e8e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+42
-42
lines changed

opal/core/pathway/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
from opal.core.test import OpalTestCase
33
from django.urls import reverse
4-
from mock import patch, MagicMock
4+
from unittest.mock import patch, MagicMock
55
from opal.core.pathway.tests.pathway_test import pathways as test_pathways
66

77

opal/core/pathway/tests/test_context_processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Test the opal.core.pathways.context_processors module
33
"""
4-
from mock import patch
4+
from unittest.mock import patch
55
from django.test import TestCase
66
from opal.core.pathway import context_processors
77
from opal.core.pathway import Pathway

opal/core/pathway/tests/test_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
unittests for opal.core.pathway.steps
33
"""
44
from django.urls import reverse
5-
from mock import MagicMock
5+
from unittest.mock import MagicMock
66

77
from opal.core import exceptions
88
from opal.core.test import OpalTestCase

opal/core/pathway/tests/test_template_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
unittests for the opal.core.pathways.templatetags package
33
"""
44
from django.template import Template, Context
5-
from mock import patch
5+
from unittest.mock import patch
66

77
from opal.core.test import OpalTestCase
88
from opal.tests.models import Colour

opal/core/search/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from opal.core.test import OpalTestCase
2-
from mock import patch
2+
from unittest.mock import patch
33
from opal.core.search import api
44
from rest_framework.reverse import reverse
55
from rest_framework import status

opal/core/search/tests/test_search_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from django.db import transaction
77
from django.contrib.auth.models import User
88
from django.contrib.contenttypes.models import ContentType
9-
from mock import patch, MagicMock
9+
from unittest.mock import patch, MagicMock
1010
from reversion import revisions as reversion
1111
from opal.tests.episodes import RestrictedEpisodeCategory
1212

opal/core/search/tests/test_search_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from mock import MagicMock, patch
1+
from unittest.mock import MagicMock, patch
22
import datetime
33

44
from opal.core.test import OpalTestCase

opal/core/search/tests/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Unittests for the opal.core.search.tasks module
33
"""
4-
from mock import patch
4+
from unittest.mock import patch
55
from opal.core.test import OpalTestCase
66

77
from opal.core.search import tasks

opal/core/search/tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from django.core.serializers.json import DjangoJSONEncoder
88
from django.contrib.auth.models import AnonymousUser
99
from django.core.exceptions import PermissionDenied
10-
from mock import patch, mock_open
10+
from unittest.mock import patch, mock_open
1111

1212
from opal import models
1313
from opal.tests import models as tmodels

opal/tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from django.db import DataError
1313
from django.http import Http404
1414
from django.contrib.contenttypes.models import ContentType
15-
from mock import patch, MagicMock
15+
from unittest.mock import patch, MagicMock
1616

1717
from rest_framework.test import APIClient
1818
from rest_framework.reverse import reverse

0 commit comments

Comments
 (0)