The current doctest setup in cam_autogen.py is quite complex, and is pushing the limit of what doctests were designed for. On top of that, there is at least one error check (multiple SDFs with the same suite name, which is being brought in with the ParamGen PR) that can't be properly tested using doctests.
However, moving these tests to a unittest testing framework would alleviate many of these issues, while still allowing doctests for the simpler functions with more straight-forward inputs.
The current doctest setup in
cam_autogen.py
is quite complex, and is pushing the limit of what doctests were designed for. On top of that, there is at least one error check (multiple SDFs with the same suite name, which is being brought in with the ParamGen PR) that can't be properly tested using doctests.However, moving these tests to a
unittest
testing framework would alleviate many of these issues, while still allowing doctests for the simpler functions with more straight-forward inputs.