parametrize_from_file
parametrize_from_file copied to clipboard
Read unit test parameters from config files
Hello! I am using your library to parametrize my tests! I am using [Pydantic](https://github.com/pydantic/pydantic) in my project and would like to use it to (de)serialize the input objects with it....
It looks like there's been a 0.19.0 release, but this hasn't made it to the releases page on GitHub. Once this is done I'll get it packaged up for Alpine.
PyCharm is not happy about something with the decorator and I'm not sure why
It'd be nice to have some ability to recurse into nested data structures. I think I can already descend into dicts using `cast()`, but I need another function for containers....
- Each time a file is loaded, note the top-level keys in global variable. - Each time a test is run, note which parameters were actually used. - At the...
The basic idea would be to load the file and then to look in `globals()` for test cases, e.g.: ``` test_foo = [ dict( given=1, expected=2, ), dict( given=3, expected=4,...
Hi! I am using pytest class in a session that uses for each test parametrize_from_file with toml file. I need to explicite now the defaults of the test as follow:...
Hi I have this json for example: ``` { "test_online_testing_version": [ { "id": "individual range conditions", "version": "Version_individual_range_conditions", "settings": [ {"parameter_name": "'Core'.'Is Included'", "parameter_type": "Binary", "values_range": {"min": 0, "max": 735}},...
Hi all! I want to use pytest.skip through parametrize_from_file decoratore. I using both json and toml files. let say for example: `[[tests]] input = "case_2" expected = 99 marks =...
by default parametrize_from_file pass parameters as function scope. supporting different scopes and hyrarchies should bring new capabilities. Especially enabling using parametrize_from_file with fixtures scoped with different scope then "function".