Пример #1
0
 def __init__(self, *args, **kwargs):
     # need to temporarily reset here because the real connection
     # inherits from the thing that we are mocking out.  Take out
     # the reset if you want to see what I mean :)
     from vcr.patch import install, reset
     reset()
     self.real_connection = self._baseclass(*args, **kwargs)
     install(self.cassette)
Пример #2
0
    def __init__(self, *args, **kwargs):
        if six.PY3:
            kwargs.pop('strict', None)  # apparently this is gone in py3

        # need to temporarily reset here because the real connection
        # inherits from the thing that we are mocking out.  Take out
        # the reset if you want to see what I mean :)
        from vcr.patch import install, reset
        reset()
        self.real_connection = self._baseclass(*args, **kwargs)
        install(self.cassette)
Пример #3
0
    def __init__(self, *args, **kwargs):
        if six.PY3:
            kwargs.pop('strict', None) # apparently this is gone in py3

        # need to temporarily reset here because the real connection
        # inherits from the thing that we are mocking out.  Take out
        # the reset if you want to see what I mean :)
        from vcr.patch import install, reset
        reset()
        self.real_connection = self._baseclass(*args, **kwargs)
        install(self.cassette)