From f8a5cad12c2c4c724f8ccf6ccc2c095df5e8941d Mon Sep 17 00:00:00 2001 From: voluntas Date: Thu, 3 Oct 2024 22:24:07 +0900 Subject: [PATCH] =?UTF-8?q?=E8=BB=A2=E3=81=91=E3=82=8B=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_disconnect.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_disconnect.py b/tests/test_disconnect.py index e80e3143..d66c95a4 100644 --- a/tests/test_disconnect.py +++ b/tests/test_disconnect.py @@ -42,8 +42,10 @@ def test_disconnect_api(setup): response = disconnect_connection_api(api_url, channel_id, conn.connection_id) assert response.status_code == 200 - assert conn.ws_close_code is not None - assert conn.ws_close_reason is not None + assert conn.ws_close_code == 1000 + assert conn.ws_close_reason == "DISCONNECTED-API" + + # TODO: LIFETIME-EXPIRED のテスト def test_sendonly_disconnect(setup):