If you look in the tests directory of the enigma2 source on git you will find some code that attempts to enable this. The README file starts:
Most of the code is 10 years old. The enigma.py code (the newest file there) is "only" 33 months old.enigma2 test environment
The goal is to test as much components of enigma2 with as less[sic] dependencies
as possible. So we create an environment which emulates "all" runtime
dependencies with fixed value.
Only python is tested, all c++ stuff is re-implemented in python (usually as
dummy functions).
My suspicion is that it won't work.