File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1515"""Unit tests for the stac pagination."""
1616
1717import json
18+
19+ import brotli
20+ import httpx
1821import pytest
1922from fastapi import FastAPI , Response
2023from fastapi .testclient import TestClient
21- from rs_server_common .middlewares import PaginationLinksMiddleware , HandleExceptionsMiddleware
22- import httpx
23- import brotli
24+ from rs_server_common .middlewares import (
25+ HandleExceptionsMiddleware ,
26+ PaginationLinksMiddleware ,
27+ )
2428
2529
2630@pytest .mark .anyio
@@ -63,10 +67,11 @@ def catalog_search():
6367 data = resp .json ()
6468 assert any (l .get ("rel" ) == "first" for l in data .get ("links" , []))
6569
70+
6671@pytest .mark .anyio
6772def test_pagination_links_middleware_handles_malformed_json ():
6873 """
69- Test case with a malformed JSON
74+ Test case with a malformed JSON
7075 """
7176 app = FastAPI ()
7277 app .add_middleware (HandleExceptionsMiddleware )
You can’t perform that action at this time.
0 commit comments