Skip to content

Commit d7653b0

Browse files
committed
fix tests
1 parent 1c4bfb2 commit d7653b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_discovery.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -595,15 +595,15 @@ def test_building_with_developer_key_skips_adc(self):
595595

596596
def test_building_with_context_manager(self):
597597
discovery = read_datafile("plus.json")
598-
with mock.patch("httplib2.Http") as http:
598+
with mock.patch("httplib2.Http"):
599599
with build_from_document(
600600
discovery,
601601
base="https://www.googleapis.com/",
602602
credentials=self.MOCK_CREDENTIALS,
603603
) as plus:
604604
self.assertIsNotNone(plus)
605605
self.assertTrue(hasattr(plus, "activities"))
606-
http.close.assert_called_once()
606+
plus._http.http.close.assert_called_once()
607607

608608
def test_resource_close(self):
609609
discovery = read_datafile("plus.json")

0 commit comments

Comments
 (0)