parameterized_utils.py 222 Bytes
Newer Older
moto's avatar
moto committed
1
2
3
4
5
6
7
8
9
10
import json

from parameterized import param

from .data_utils import get_asset_path


def load_params(*paths):
    with open(get_asset_path(*paths), 'r') as file:
        return [param(json.loads(line)) for line in file]