From 527462fe0b00efea604485827c8e6e99b4722548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 27 Feb 2026 15:31:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Tweak=20tests=20for=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_stream_bare_type.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_stream_bare_type.py b/tests/test_stream_bare_type.py index 85b4655345..68bd31df6b 100644 --- a/tests/test_stream_bare_type.py +++ b/tests/test_stream_bare_type.py @@ -1,5 +1,5 @@ import json -from collections.abc import AsyncIterable, Iterable +from typing import AsyncIterable, Iterable # noqa: UP035 to test coverage from fastapi import FastAPI from fastapi.testclient import TestClient @@ -27,7 +27,6 @@ client = TestClient(app) def test_stream_bare_async_iterable(): - """Test that bare AsyncIterable (no type args) works and streams JSONL.""" response = client.get("/items/stream-bare-async") assert response.status_code == 200 assert response.headers["content-type"] == "application/jsonl" @@ -36,7 +35,6 @@ def test_stream_bare_async_iterable(): def test_stream_bare_sync_iterable(): - """Test that bare Iterable (no type args) works and streams JSONL.""" response = client.get("/items/stream-bare-sync") assert response.status_code == 200 assert response.headers["content-type"] == "application/jsonl"