Closed jwhitlock closed 2 years ago
For https://github.com/mozilla/fx-private-relay/pull/1809, I wanted to enable code only if we're not running pytest. There's one way to do it, and a quick way (if "pytest" in sys.modules). Because markus imports pytest early (added for https://github.com/willkg/markus/issues/73), the quick method doesn't work.
if "pytest" in sys.modules
I think I can make this work by adding a pytest plugin.
Fixed by #96.
For https://github.com/mozilla/fx-private-relay/pull/1809, I wanted to enable code only if we're not running pytest. There's one way to do it, and a quick way (
if "pytest" in sys.modules
). Because markus imports pytest early (added for https://github.com/willkg/markus/issues/73), the quick method doesn't work.I think I can make this work by adding a pytest plugin.