Just some background, so this doesn't end up being an XY Problem:
The Squish library has some basic methods to do tests, test.verify
, testpare
, etc.
Because the screenshot functionality is not working in our configuration and in the pipeline I don't see stack traces (only in the Squish UI) a created a wrapper for this library which just calls these functions and does the additional mentioned work if something fails. It works just fine.
Unfortunately this has the side-effect that the Squish UI reports the problems in my wrapper module and not at the call site.
Is there some python magic that I can apply so the test.
methods in squish see the call site as if they were called from there and not from my wrapper module?
Note: I have to use python3.8.