File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ def catalog_search():
5151 transport = httpx .ASGITransport (app = app )
5252 async with httpx .AsyncClient (transport = transport , base_url = "http://test" ) as client :
5353 if use_br :
54- #'encoding == "br"' + if path == "/catalog/search" (sets auth:refs).
5554 # checks if the headers were kept
5655 async with client .stream ("POST" , "/catalog/search" , json = {"limit" : 1 }) as resp :
5756 assert resp .status_code == 200
@@ -65,7 +64,7 @@ def catalog_search():
6564
6665 # checks if 'first' was added when there is 'previous'
6766 data = resp .json ()
68- assert any (l .get ("rel" ) == "first" for l in data .get ("links" , []))
67+ assert any (rel .get ("rel" ) == "first" for rel in data .get ("links" , []))
6968
7069
7170@pytest .mark .anyio
You can’t perform that action at this time.
0 commit comments