Simplify current tests
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 9 Sep 2020 22:02:17 +0000 (18:02 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 10 Sep 2020 01:30:17 +0000 (21:30 -0400)
commitf18d46aaaaa8636270a53311acbf6c9e1e482106
tree7ccf63454d246ac3f83ec105d7073b7058e58536
parent90849be0b452290189b81a93a0646f7af94bc98a
Simplify current tests

This patch:

* Adds the global yaml_cfg_path() fixture which returns the path to an
  hypothetical barectf YAML configuration file based on the test's
  module file and function names.

* Updates the config_fail_test() fixture to only use yaml_cfg_path()

* Updates all the test functions to only use config_fail_test() and call
  it without parameters.

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