1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Correct mock imports. Fixes #504 (#505)

* Correct mock imports. Fixes #504

Update changelog

Revert accidental import deletion

* Remove move dependency that was masking error from tox.ini
This commit is contained in:
Josh Peak
2019-12-20 22:08:25 +11:00
committed by GitHub
parent f07083e7cc
commit accffa8ea2
11 changed files with 16 additions and 16 deletions

View File

@@ -9,8 +9,10 @@ All help in providing PRs to close out bug issues is appreciated. Even if that i
- UNRELEASED - 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 - 4.0.0
- Remove Python2 support (@hugovk) - Remove Python2 support (@hugovk)
- Add Python 3.8 TravisCI support (@neozenith) - Add Python 3.8 TravisCI support (@neozenith)

View File

@@ -1,13 +1,12 @@
import contextlib import contextlib
import copy import copy
import inspect
import mock
import os
import http.client as httplib import http.client as httplib
import inspect
import os
from unittest import mock
import pytest import pytest
import yaml import yaml
from vcr.cassette import Cassette from vcr.cassette import Cassette
from vcr.errors import UnhandledHTTPRequestError from vcr.errors import UnhandledHTTPRequestError
from vcr.patch import force_reset from vcr.patch import force_reset

View File

@@ -1,4 +1,4 @@
import mock from unittest import mock
import pytest import pytest

View File

@@ -11,7 +11,7 @@ from vcr.filters import (
from vcr.request import Request from vcr.request import Request
import gzip import gzip
import json import json
import mock from unittest import mock
import zlib import zlib

View File

@@ -1,5 +1,5 @@
import itertools import itertools
import mock from unittest import mock
import pytest import pytest

View File

@@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
import mock from unittest import mock
import pytest import pytest

View File

@@ -1,4 +1,4 @@
import mock from unittest import mock
from vcr.stubs import VCRHTTPSConnection from vcr.stubs import VCRHTTPSConnection
from vcr.cassette import Cassette from vcr.cassette import Cassette

View File

@@ -1,4 +1,4 @@
import mock from unittest import mock
import os import os
import pytest import pytest

View File

@@ -63,7 +63,6 @@ commands =
./runtests.sh --cov=./vcr --cov-branch --cov-report=xml --cov-append {posargs} ./runtests.sh --cov=./vcr --cov-branch --cov-report=xml --cov-append {posargs}
deps = deps =
Flask Flask
mock
pytest pytest
pytest-httpbin pytest-httpbin
pytest-cov pytest-cov

View File

@@ -2,7 +2,7 @@ import logging
from .config import VCR from .config import VCR
from logging import NullHandler from logging import NullHandler
__version__ = "4.0.1" __version__ = "4.0.2"
logging.getLogger(__name__).addHandler(NullHandler()) logging.getLogger(__name__).addHandler(NullHandler())

View File

@@ -2,7 +2,7 @@
import contextlib import contextlib
import functools import functools
import itertools import itertools
import mock from unittest import mock
from .stubs import VCRHTTPConnection, VCRHTTPSConnection from .stubs import VCRHTTPConnection, VCRHTTPSConnection
import http.client as httplib import http.client as httplib