Skip to content

Commit

Permalink
Cut: Drop external mock test dependency (evenicoulddoit#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenicoulddoit authored Dec 18, 2021
1 parent 5cff281 commit abed9de
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Introduced `black` and `isort` to standardise coding style
* Restructures requirements to create single source of truth
* Drops `./runtest` executable, `pytest` now direct route
* Drops `mock` dependency, in favour of `unittest.mock`

## [2.0.1] - 2020-09-20
### Fixed
Expand Down
1 change: 0 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
django-test-plus==1.4.0
Django>=2.1.15,<4
djangorestframework>=3.9.4
mock==2.0.0
pytest-cov==2.6.1
pytest-django==3.4.8
pytest==4.4.1
3 changes: 2 additions & 1 deletion tests/test_auto_optimise.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from unittest.mock import patch

import django
from django.db import connection
from django.http import QueryDict
from django.test import override_settings, RequestFactory
from mock import patch
from rest_framework.fields import SerializerMethodField
from test_plus.test import CBVTestCase

Expand Down
3 changes: 2 additions & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import patch

from django.http import QueryDict
from django.test import override_settings, RequestFactory, TestCase
from mock import patch
from test_plus.test import CBVTestCase

from rest_framework_serializer_extensions.utils import (
Expand Down

0 comments on commit abed9de

Please sign in to comment.