ports/www/py-vcrpy/patches/patch-tests_unit_test_stubs_py

22 lines
1.1 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
_pbuild user is blocked from accessing the Internet
Index: tests/unit/test_stubs.py
--- tests/unit/test_stubs.py.orig
+++ tests/unit/test_stubs.py
@@ -11,9 +11,9 @@ class TestVCRConnection:
vcr_connection.ssl_version = "example_ssl_version"
assert vcr_connection.real_connection.ssl_version == "example_ssl_version"
- @mock.patch("vcr.cassette.Cassette.can_play_response_for", return_value=False)
- def testing_connect(*args):
- vcr_connection = VCRHTTPSConnection("www.google.com")
- vcr_connection.cassette = Cassette("test", record_mode=mode.ALL)
- vcr_connection.real_connection.connect()
- assert vcr_connection.real_connection.sock is not None
+ #@mock.patch("vcr.cassette.Cassette.can_play_response_for", return_value=False)
+ #def testing_connect(*args):
+ # vcr_connection = VCRHTTPSConnection("www.google.com")
+ # vcr_connection.cassette = Cassette("test", record_mode=mode.ALL)
+ # vcr_connection.real_connection.connect()
+ # assert vcr_connection.real_connection.sock is not None