новый мииф\
Some checks failed
CI / Lint (ruff + mypy) (push) Failing after 36s
CI / Run tests (push) Has been skipped
CI / Docker build test (push) Successful in 18s

This commit is contained in:
2026-03-30 17:10:24 +07:00
parent 03aa7805d1
commit 1d2f615b21
2 changed files with 22 additions and 3 deletions

View File

@@ -44,6 +44,18 @@ async def test_list_issues_retries_without_query_params_on_422() -> None:
]
def test_parse_next_cursor_extracts_only_cursor_value() -> None:
link_header = (
'<https://glitchtip.example.com/api/0/projects/org/backend-production/issues/'
'?limit=100&cursor=cD0yMDI2LTAzLTI2KzIxJTNBNTklM0EyMS4xNjkxNDklMkIwMCUzQTAw'
'%26limit%3D100>; rel="next"; results="true"; cursor="..."'
)
cursor = GlitchTipClient._parse_next_cursor(link_header)
assert cursor == "cD0yMDI2LTAzLTI2KzIxJTNBNTklM0EyMS4xNjkxNDklMkIwMCUzQTAw&limit=100"
@pytest.mark.asyncio
async def test_list_issues_preserves_non_422_errors() -> None:
def handler(request: httpx.Request) -> httpx.Response: