Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Json File - Need help #128

Open
lejencodes opened this issue Jul 31, 2021 · 0 comments
Open

Loading Json File - Need help #128

lejencodes opened this issue Jul 31, 2021 · 0 comments

Comments

@lejencodes
Copy link

lejencodes commented Jul 31, 2021

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"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant