@@ -40,12 +40,12 @@ class TestOrb:
4040
4141 @pytest .mark .respx (base_url = base_url )
4242 def test_raw_response (self , respx_mock : MockRouter ) -> None :
43- respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = ' {"foo": "bar"}' ))
43+ respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
4444
4545 response = self .client .post ("/foo" , cast_to = httpx .Response )
4646 assert response .status_code == 200
4747 assert isinstance (response , httpx .Response )
48- assert response .json () == ' {"foo": "bar"}'
48+ assert response .json () == {"foo" : "bar" }
4949
5050 @pytest .mark .respx (base_url = base_url )
5151 def test_raw_response_for_binary (self , respx_mock : MockRouter ) -> None :
@@ -56,7 +56,7 @@ def test_raw_response_for_binary(self, respx_mock: MockRouter) -> None:
5656 response = self .client .post ("/foo" , cast_to = httpx .Response )
5757 assert response .status_code == 200
5858 assert isinstance (response , httpx .Response )
59- assert response .json () == ' {"foo": "bar"}'
59+ assert response .json () == {"foo" : "bar" }
6060
6161 def test_copy (self ) -> None :
6262 copied = self .client .copy ()
@@ -583,12 +583,12 @@ class TestAsyncOrb:
583583 @pytest .mark .respx (base_url = base_url )
584584 @pytest .mark .asyncio
585585 async def test_raw_response (self , respx_mock : MockRouter ) -> None :
586- respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = ' {"foo": "bar"}' ))
586+ respx_mock .post ("/foo" ).mock (return_value = httpx .Response (200 , json = {"foo" : "bar" }))
587587
588588 response = await self .client .post ("/foo" , cast_to = httpx .Response )
589589 assert response .status_code == 200
590590 assert isinstance (response , httpx .Response )
591- assert response .json () == ' {"foo": "bar"}'
591+ assert response .json () == {"foo" : "bar" }
592592
593593 @pytest .mark .respx (base_url = base_url )
594594 @pytest .mark .asyncio
@@ -600,7 +600,7 @@ async def test_raw_response_for_binary(self, respx_mock: MockRouter) -> None:
600600 response = await self .client .post ("/foo" , cast_to = httpx .Response )
601601 assert response .status_code == 200
602602 assert isinstance (response , httpx .Response )
603- assert response .json () == ' {"foo": "bar"}'
603+ assert response .json () == {"foo" : "bar" }
604604
605605 def test_copy (self ) -> None :
606606 copied = self .client .copy ()
0 commit comments