From a05da2a95604e1f1770d09a69d7477ab927e87e6 Mon Sep 17 00:00:00 2001 From: Florian Bruhin <git@the-compiler.org> Date: Mon, 9 Nov 2015 07:37:52 +0100 Subject: [PATCH] bdd: Add a "then no crash should happen" step. This is actually just a NOP, but helps in writing nice sentences ;) --- tests/integration/features/conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/integration/features/conftest.py b/tests/integration/features/conftest.py index 5b2489df8..5897dd784 100644 --- a/tests/integration/features/conftest.py +++ b/tests/integration/features/conftest.py @@ -121,3 +121,11 @@ def compare_session(quteproc, expected): data = quteproc.get_session() expected = loader.get_data() assert utils.partial_compare(data, expected) + + +@bdd.then("no crash should happen") +def no_crash(): + """Don't do anything. + + This is actually a NOP as a crash is already checked in the log.""" + pass