parameterized icon indicating copy to clipboard operation
parameterized copied to clipboard

Loading Json File - Need help

Open lejencodes opened this issue 4 years ago • 0 comments

An iterable of params

@parameterized( param.explicit(*json.loads(line)) for line in open("testcases.jsons") ) def test_from_json_file(...): ...

Trying to follow the guide of loading json file, is there any particular format of json that we need to follow here? I am getting TypeError: type object argument after ** must be a mapping, not str

Sample json: {"birthday": "1956-01-31T12: 00: 00Z", "name": "Guido van Rossum"}

lejencodes avatar Jul 31 '21 14:07 lejencodes