alexander | f42f568 | 2021-07-16 11:30:56 +0100 | [diff] [blame^] | 1 | # Copyright © 2020 Arm Ltd and Contributors. All rights reserved. |
| 2 | # SPDX-License-Identifier: MIT |
| 3 | |
| 4 | import os |
| 5 | import ntpath |
| 6 | |
| 7 | import urllib.request |
| 8 | |
| 9 | import pytest |
| 10 | |
| 11 | script_dir = os.path.dirname(__file__) |
| 12 | |
| 13 | @pytest.fixture(scope="session") |
| 14 | def 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 |