auto-sync: 2026-05-17 06:28:36
This commit is contained in:
+5
-2
@@ -194,5 +194,8 @@ class TestBlackboardAPI:
|
||||
|
||||
class TestSSE:
|
||||
def test_sse_connection(self, client):
|
||||
resp = client.get("/api/events")
|
||||
assert resp.status_code == 200
|
||||
with client.stream("GET", "/api/events") as resp:
|
||||
assert resp.status_code == 200
|
||||
# Read first chunk (connected event or heartbeat)
|
||||
chunk = next(resp.iter_lines())
|
||||
assert chunk # Got some data
|
||||
|
||||
Reference in New Issue
Block a user