From cde8b4b806c23ab337b9860dcc49d02a4f0a9983 Mon Sep 17 00:00:00 2001 From: misyaguziya <53165965+misyaguziya@users.noreply.github.com> Date: Sun, 28 Sep 2025 06:57:58 +0900 Subject: [PATCH] =?UTF-8?q?selected=5Ftranslation=5Fcompute=5Ftype/selecte?= =?UTF-8?q?d=5Ftranscription=5Fcompute=5Ftype=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=B1=E3=83=BC=E3=82=B9=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/backend_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src-python/backend_test.py b/src-python/backend_test.py index 2550ff92..6f1de883 100644 --- a/src-python/backend_test.py +++ b/src-python/backend_test.py @@ -357,6 +357,10 @@ class TestMainloop(): expected_status = [400] case "/set/data/osc_port": data = random.randint(1024, 65535) + case "/set/data/selected_translation_compute_type": + data = random.choice(self.config_dict["selected_translation_compute_device"]["compute_types"]) + case "/set/data/selected_transcription_compute_type": + data = random.choice(self.config_dict["selected_transcription_compute_device"]["compute_types"]) case _: data = None expected_status = [404] @@ -645,6 +649,13 @@ class TestMainloop(): print(f"- エンドポイント: {endpoint}") print(f" ステータス: {result['status']}") print(f" 結果: {result['result']}\n") + if invalid_tests > 0: + print("無効なテストの詳細:") + for endpoint, result in self.test_results.items(): + if result["expected_status"] == [404]: + print(f"- エンドポイント: {endpoint}") + print(f" ステータス: {result['status']}") + print(f" 結果: {result['result']}\n") if failed_tests > 0: print("失敗したテストの詳細:") for endpoint, result in self.test_results.items():