zephyr/scripts/dts/python-devicetree
Christophe Dufaza ee5c520326 edtlib: tests: refine coverage of Binding objects initialization
Add a series of unit tests which try to cover somewhat systematically
the possible inputs and what we finally get at the exit
of the Binding constructor.

Running the assumption that any (valid) YAML binding file is
something we can make a Binding instance with:
- check which properties are defined at which level (binding,
  child-binding, grandchild-binding, etc) and their specifications
  once the binding is initialized
- check how including bindings are permitted to specialize
  the specifications of inherited properties
- check the rules applied when overwriting a binding's description
  or compatible string (at the binding, child-binding, etc, levels)

Some tests covering known issues are disabled by default:
- this permits to document these issues
- while not causing CI errors (when running the python-devicetree
  unit tests)
- enabling these tests without causing errors should allow us
  to consider the related issues are fixed

Signed-off-by: Christophe Dufaza <chris@openmarl.org>
2025-01-08 19:17:51 +01:00
..
src/devicetree style: edtlib: Use a better type Annotations 2025-01-08 03:26:58 +01:00
tests edtlib: tests: refine coverage of Binding objects initialization 2025-01-08 19:17:51 +01:00
.gitignore
requirements.txt
setup.py python: Format trivial files where only newlines were missing 2024-11-21 20:10:51 +01:00
tox.ini python-devicetree: unpin types-PyYAML version 2023-01-16 11:19:54 +00:00