tests/config/yaml: use pytest_collect_file() hook for YAML files
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 10 Sep 2020 04:06:41 +0000 (00:06 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 10 Sep 2020 04:06:41 +0000 (00:06 -0400)
commitb1c5cbcf3b6196cac7a813507b31c11190fef4f4
tree6e16551e988682eb8a4ff1681baee69d77edac1c
parent67ec402819ef74ec2f9c16cc8a2bcc3e20627bb0
tests/config/yaml: use pytest_collect_file() hook for YAML files

This patch changes `tests/config/yaml/conftest.py` so that it implements
a pytest_collect_file() Pytest hook to create Pytest file and item
objects for each failing barectf YAML configuration file found.

This makes is possible to remove all `test_fail_*.py` files and avoid
duplication and mismatches between existing YAML files and available
test functions.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
15 files changed:
tests/config/yaml/2/test_fail_clock.py [deleted file]
tests/config/yaml/2/test_fail_config.py [deleted file]
tests/config/yaml/2/test_fail_event.py [deleted file]
tests/config/yaml/2/test_fail_include.py [deleted file]
tests/config/yaml/2/test_fail_metadata.py [deleted file]
tests/config/yaml/2/test_fail_stream.py [deleted file]
tests/config/yaml/2/test_fail_trace.py [deleted file]
tests/config/yaml/2/test_fail_type.py [deleted file]
tests/config/yaml/2/test_fail_type_enum.py [deleted file]
tests/config/yaml/2/test_fail_type_float.py [deleted file]
tests/config/yaml/2/test_fail_type_int.py [deleted file]
tests/config/yaml/2/test_fail_type_string.py [deleted file]
tests/config/yaml/2/test_fail_type_struct.py [deleted file]
tests/config/yaml/2/test_fail_yaml.py [deleted file]
tests/config/yaml/conftest.py
This page took 0.024074 seconds and 4 git commands to generate.