xref: /aosp_15_r20/external/armnn/python/pyarmnn/examples/speech_recognition/tests/conftest.py (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1# Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
2# SPDX-License-Identifier: MIT
3
4import os
5import ntpath
6
7import urllib.request
8
9import pytest
10
11script_dir = os.path.dirname(__file__)
12
13@pytest.fixture(scope="session")
14def test_data_folder(request):
15    """
16        This fixture returns path to folder with shared test resources among asr tests
17    """
18
19    data_dir = os.path.join(script_dir, "testdata")
20
21    if not os.path.exists(data_dir):
22        os.mkdir(data_dir)
23
24    return data_dir