Skip to content

Commit c4a031f

Browse files
authored
chore: remove "mock" dev dependency (#54)
* Fix tests to use unittest.mock * Remove dev dependency on mock * Update CHANGELOG
1 parent 4c3759f commit c4a031f

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).
1212
### Changed
1313
- [PR 52](https://github.com/salesforce/django-declarative-apis/pull/52) Update cryptography and coverage dependencies
1414
- [PR 53](https://github.com/salesforce/django-declarative-apis/pull/53) Update dev dependencies: flake8, bandit, ipython
15+
- [PR 54](https://github.com/salesforce/django-declarative-apis/pull/54) Remove unneeded `mock` dependency
1516

1617
# [0.22.2] - 2020-08-11
1718
### Fixed

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ bumpversion~=0.5
44
coverage~=5.0
55
flake8~=3.9.0
66
ipython~=7.0
7-
mock==2.0.0
87
oauth2==1.9.0.post1
98
pyyaml~=5.3
109
sphinx_rtd_theme==0.4.2

tests/authentication/oauthlib/test_oauth1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import django.test
1313
import django.http
14-
import mock
14+
from unittest import mock
1515

1616
from django_declarative_apis import models
1717
from django_declarative_apis import authentication

tests/authentication/oauthlib/test_request_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77

88
import django.test
9-
import mock
9+
from unittest import mock
1010

1111
from django_declarative_apis import models
1212
from django_declarative_apis.authentication.oauthlib import request_validator

tests/machinery/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import django.core.exceptions
1313
import django.test
1414
import kombu.exceptions
15-
import mock
15+
from unittest import mock
1616
from django.core.cache import cache
1717
from django.http import HttpRequest
1818

tests/resources/test_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import django.conf
1212
import django.core.exceptions
1313
import django.test
14-
import mock
14+
from unittest import mock
1515

1616
from django_declarative_apis.authentication.oauthlib import oauth_errors
1717
from django_declarative_apis.resources import resource

tests/resources/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import unittest
1111

1212
import django.test
13-
import mock
13+
from unittest import mock
1414
from cryptography.hazmat.backends import default_backend
1515
from cryptography.hazmat.primitives import serialization
1616
from cryptography.hazmat.primitives.asymmetric import rsa

tests/test_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77

88
import django.test
9-
import mock
9+
from unittest import mock
1010

1111
from django_declarative_apis.machinery import filtering
1212

0 commit comments

Comments
 (0)