@@ -56,7 +56,7 @@ def test_update_existing_client(mocker):
5656
5757class TestGetJson :
5858 def test__get_json_no_url_or_path (self , mocker ):
59- get = mocker .patch ("requests .get" )
59+ get = mocker .patch ("httpx .get" )
6060 Path = mocker .patch ("openapi_python_client.Path" )
6161 loads = mocker .patch ("json.loads" )
6262
@@ -70,7 +70,7 @@ def test__get_json_no_url_or_path(self, mocker):
7070 loads .assert_not_called ()
7171
7272 def test__get_json_url_and_path (self , mocker ):
73- get = mocker .patch ("requests .get" )
73+ get = mocker .patch ("httpx .get" )
7474 Path = mocker .patch ("openapi_python_client.Path" )
7575 loads = mocker .patch ("json.loads" )
7676
@@ -84,7 +84,7 @@ def test__get_json_url_and_path(self, mocker):
8484 loads .assert_not_called ()
8585
8686 def test__get_json_url_no_path (self , mocker ):
87- get = mocker .patch ("requests .get" )
87+ get = mocker .patch ("httpx .get" )
8888 Path = mocker .patch ("openapi_python_client.Path" )
8989 loads = mocker .patch ("json.loads" )
9090
@@ -98,7 +98,7 @@ def test__get_json_url_no_path(self, mocker):
9898 loads .assert_called_once_with (get ().content )
9999
100100 def test__get_json_path_no_url (self , mocker ):
101- get = mocker .patch ("requests .get" )
101+ get = mocker .patch ("httpx .get" )
102102 loads = mocker .patch ("json.loads" )
103103
104104 from openapi_python_client import _get_json
0 commit comments