Skip to content

Commit

Permalink
Correct mock imports. Fixes #504 (#505)
Browse files Browse the repository at this point in the history
* Correct mock imports. Fixes #504

Update changelog

Revert accidental import deletion

* Remove move dependency that was masking error from tox.ini
  • Loading branch information
neozenith authored Dec 20, 2019
1 parent f07083e commit accffa8
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
6 changes: 4 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ All help in providing PRs to close out bug issues is appreciated. Even if that i

- UNRELEASED
- ...


- 4.0.2
- Fix mock imports as reported in #504 by @llybin. Thank you.
- 4.0.1
- Fix logo alignment for PyPI
- 4.0.0
- Remove Python2 support (@hugovk)
- Add Python 3.8 TravisCI support (@neozenith)
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/test_cassettes.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import contextlib
import copy
import http.client as httplib
import inspect
import mock
import os
from unittest import mock

import http.client as httplib
import pytest
import yaml

from vcr.cassette import Cassette
from vcr.errors import UnhandledHTTPRequestError
from vcr.patch import force_reset
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from vcr.request import Request
import gzip
import json
import mock
from unittest import mock
import zlib


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_matchers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import itertools
import mock
from unittest import mock

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_serialize.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
import mock
from unittest import mock

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_stubs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock

from vcr.stubs import VCRHTTPSConnection
from vcr.cassette import Cassette
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_vcr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mock
from unittest import mock
import os

import pytest
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ commands =
./runtests.sh --cov=./vcr --cov-branch --cov-report=xml --cov-append {posargs}
deps =
Flask
mock
pytest
pytest-httpbin
pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion vcr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .config import VCR
from logging import NullHandler

__version__ = "4.0.1"
__version__ = "4.0.2"

logging.getLogger(__name__).addHandler(NullHandler())

Expand Down
2 changes: 1 addition & 1 deletion vcr/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import contextlib
import functools
import itertools
import mock
from unittest import mock

from .stubs import VCRHTTPConnection, VCRHTTPSConnection
import http.client as httplib
Expand Down

0 comments on commit accffa8

Please sign in to comment.