We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c4bfb2 commit d7653b0Copy full SHA for d7653b0
tests/test_discovery.py
@@ -595,15 +595,15 @@ def test_building_with_developer_key_skips_adc(self):
595
596
def test_building_with_context_manager(self):
597
discovery = read_datafile("plus.json")
598
- with mock.patch("httplib2.Http") as http:
+ with mock.patch("httplib2.Http"):
599
with build_from_document(
600
discovery,
601
base="https://www.googleapis.com/",
602
credentials=self.MOCK_CREDENTIALS,
603
) as plus:
604
self.assertIsNotNone(plus)
605
self.assertTrue(hasattr(plus, "activities"))
606
- http.close.assert_called_once()
+ plus._http.http.close.assert_called_once()
607
608
def test_resource_close(self):
609
0 commit comments