diff options
Diffstat (limited to 'tests/end2end/features/conftest.py')
-rw-r--r-- | tests/end2end/features/conftest.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/end2end/features/conftest.py b/tests/end2end/features/conftest.py index 2bb3d5079..4504b4f20 100644 --- a/tests/end2end/features/conftest.py +++ b/tests/end2end/features/conftest.py @@ -533,7 +533,7 @@ def javascript_message_not_logged(quteproc, message): @bdd.then(bdd.parsers.parse("The session should look like:\n{expected}")) -def compare_session(request, quteproc, expected): +def compare_session(quteproc, expected): """Compare the current sessions against the given template. partial_compare is used, which means only the keys/values listed will be @@ -542,6 +542,13 @@ def compare_session(request, quteproc, expected): quteproc.compare_session(expected) +@bdd.then( + bdd.parsers.parse("The session saved with {flags} should look like:\n{expected}")) +def compare_session_flags(quteproc, flags, expected): + """Compare the current session saved with custom flags.""" + quteproc.compare_session(expected, flags=flags) + + @bdd.then("no crash should happen") def no_crash(): """Don't do anything. |