aboutsummaryrefslogtreecommitdiff
path: root/python/pyarmnn/examples/speech_recognition/tests/conftest.py
blob: 151816e9190c01fc4edeb39d97d769ee9e6d2e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
# SPDX-License-Identifier: MIT

import os
import ntpath

import urllib.request

import pytest

script_dir = os.path.dirname(__file__)

@pytest.fixture(scope="session")
def test_data_folder(request):
    """
        This fixture returns path to folder with shared test resources among asr tests
    """

    data_dir = os.path.join(script_dir, "testdata")

    if not os.path.exists(data_dir):
        os.mkdir(data_dir)

    return data_dir