Unverified Commit 61f3ce20 authored by René Fritze's avatar René Fritze
Browse files

[tests] let pytest rewrite assertion in demos

parent c37a3d2e
......@@ -241,6 +241,9 @@ def _test_demo(demo):
def test_demos(demo_args):
module, args = demo_args
# assertions in pymordemos do not get changed by pytest by default
# https://docs.pytest.org/en/stable/writing_plugins.html#assertion-rewriting
pytest.register_assert_rewrite(module)
module = import_module(module)
if hasattr(module, 'app'):
app = module.app
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment