# coding=utf-8
"""
@author:
@team:
@contact:
@file: test_smoke****.py
@date:
@desc:
"""
from .. import *
resource_path = str(Path(__file__).parent.resolve().joinpath('res'))
@epic("AutoTest For ***")
@feature("Feature For ****")
@story("Test For ***")
class TestAssistant:
"""
Test for two intents
1.
2.
"""
@title("Test for ****")
@allure.testcase("URL", "View Test Case: ****")
@pytest.mark.xray('****')
@pytest.mark.parametrize("test_data", convert_file_to_json(f"{resource_path}/****.json"))
def test_brake_assistant_on(self, test_data):
"""
test assistant on using more different audio files
"""
resp = Client.start(get_test_resource_path(f"{resource_path}/{test_data['audio_path']}"))
assert_common(resp)
assert_asr_result(resp, test_data['expect_asr'])