blob: 151816e9190c01fc4edeb39d97d769ee9e6d2e09 [file] [log] [blame]
alexanderf42f5682021-07-16 11:30:56 +01001# 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