"vscode:/vscode.git/clone" did not exist on "c5cffcd0cdbba9273954b4fd1317137208ce564c"
conftest.py 632 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import pytest

from vllm.assets.audio import AudioAsset


@pytest.fixture
def mary_had_lamb():
10
    path = AudioAsset("mary_had_lamb").get_local_path()
11
12
13
14
15
16
    with open(str(path), "rb") as f:
        yield f


@pytest.fixture
def winning_call():
17
    path = AudioAsset("winning_call").get_local_path()
18
19
20
21
22
23
24
    with open(str(path), "rb") as f:
        yield f


@pytest.fixture
def foscolo():
    # Test translation it->en
25
    path = AudioAsset("azacinto_foscolo").get_local_path()
26
27
    with open(str(path), "rb") as f:
        yield f