@@ -41,12 +41,12 @@ class TestFinch:
41
41
42
42
@pytest .mark .respx (base_url = base_url )
43
43
def test_raw_response (self , respx_mock : MockRouter ) -> None :
44
- respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = ' {"foo": "bar"}' ))
44
+ respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
45
45
46
46
response = self .client .post ("/foo" , cast_to = httpx .Response )
47
47
assert response .status_code == 200
48
48
assert isinstance (response , httpx .Response )
49
- assert response .json () == ' {"foo": "bar"}'
49
+ assert response .json () == {"foo" : "bar" }
50
50
51
51
@pytest .mark .respx (base_url = base_url )
52
52
def test_raw_response_for_binary (self , respx_mock : MockRouter ) -> None :
@@ -57,7 +57,7 @@ def test_raw_response_for_binary(self, respx_mock: MockRouter) -> None:
57
57
response = self .client .post ("/foo" , cast_to = httpx .Response )
58
58
assert response .status_code == 200
59
59
assert isinstance (response , httpx .Response )
60
- assert response .json () == ' {"foo": "bar"}'
60
+ assert response .json () == {"foo" : "bar" }
61
61
62
62
def test_copy (self ) -> None :
63
63
copied = self .client .copy ()
@@ -683,12 +683,12 @@ class TestAsyncFinch:
683
683
@pytest .mark .respx (base_url = base_url )
684
684
@pytest .mark .asyncio
685
685
async def test_raw_response (self , respx_mock : MockRouter ) -> None :
686
- respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = ' {"foo": "bar"}' ))
686
+ respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
687
687
688
688
response = await self .client .post ("/foo" , cast_to = httpx .Response )
689
689
assert response .status_code == 200
690
690
assert isinstance (response , httpx .Response )
691
- assert response .json () == ' {"foo": "bar"}'
691
+ assert response .json () == {"foo" : "bar" }
692
692
693
693
@pytest .mark .respx (base_url = base_url )
694
694
@pytest .mark .asyncio
@@ -700,7 +700,7 @@ async def test_raw_response_for_binary(self, respx_mock: MockRouter) -> None:
700
700
response = await self .client .post ("/foo" , cast_to = httpx .Response )
701
701
assert response .status_code == 200
702
702
assert isinstance (response , httpx .Response )
703
- assert response .json () == ' {"foo": "bar"}'
703
+ assert response .json () == {"foo" : "bar" }
704
704
705
705
def test_copy (self ) -> None :
706
706
copied = self .client .copy ()
0 commit comments