selected_translation_compute_type/selected_transcription_compute_typeのテストケースを追加

This commit is contained in:
misyaguziya
2025-09-28 06:57:58 +09:00
parent e7cd872fcc
commit cde8b4b806

View File

@@ -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():