Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 0bcab91

Browse files
Nayef211nayef211
andauthored
Remove redundant get asset functions from parameterized_utils (#1501)
Co-authored-by: nayef211 <[email protected]>
1 parent 2cb80a2 commit 0bcab91

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

test/common/parameterized_utils.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
import json
2-
from parameterized import param
3-
import os.path
4-
5-
6-
_TEST_DIR_PATH = os.path.realpath(
7-
os.path.join(os.path.dirname(__file__), '..'))
82

3+
from parameterized import param
94

10-
def get_asset_path(*paths):
11-
"""Return full path of a test asset"""
12-
return os.path.join(_TEST_DIR_PATH, 'asset', *paths)
5+
from .assets import get_asset_path
136

147

158
def load_params(*paths):
16-
with open(get_asset_path(*paths), 'r') as file:
9+
with open(get_asset_path(*paths), "r") as file:
1710
return [param(json.loads(line)) for line in file]

0 commit comments

Comments
 (0)