Manipulating the functions called by cmd_toolkit.ElevationControl code in order to govern how that code works in testing is a really brittle solution to needing to control the behavior of that code. Better, the code should simply drop in a testing implementation of the ElevationControl code.
Manipulating the functions called by
cmd_toolkit.ElevationControl
code in order to govern how that code works in testing is a really brittle solution to needing to control the behavior of that code. Better, the code should simply drop in a testing implementation of theElevationControl
code.