Skip to content

Commit

Permalink
vcr/unittest: Simplify file layout
Browse files Browse the repository at this point in the history
.. and make "from vcr.unittest import VCRTestCase" work again.
  • Loading branch information
hartwork committed Jun 8, 2023
1 parent ce234e5 commit d613a81
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ you can hook on ``_get_vcr``, for example:
See
`the source
<https://github.com/kevin1024/vcrpy/blob/master/vcr/unittest/testcase.py>`__
<https://github.com/kevin1024/vcrpy/blob/master/vcr/unittest.py>`__
for the default implementations of these methods.

If you implement a ``setUp`` method on your test class then make sure to call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest.mock import MagicMock
from urllib.request import urlopen

from ..testcase import VCRTestCase
from vcr.unittest import VCRTestCase


def test_defaults():
Expand Down
2 changes: 1 addition & 1 deletion vcr/unittest/testcase.py → vcr/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import unittest

from .. import VCR
from .config import VCR


class VCRMixin:
Expand Down
Empty file removed vcr/unittest/__init__.py
Empty file.
Empty file removed vcr/unittest/tests/__init__.py
Empty file.

0 comments on commit d613a81

Please sign in to comment.