From ecd6cb4e45096f8d6653c6bb2e4701e683ce4e61 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Thu, 22 Sep 2016 08:12:45 +0200 Subject: Pretty-print structures in assert_deepequal By default, ipa-run-tests will now pretty-print structures compared in the assert_deepequal function. This behaviour can be turned off by the --no-pretty-print option. https://fedorahosted.org/freeipa/ticket/6212 Reviewed-By: Martin Basti Reviewed-By: Petr Spacek --- ipatests/pytest_plugins/additional_config.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ipatests/pytest_plugins/additional_config.py (limited to 'ipatests/pytest_plugins') diff --git a/ipatests/pytest_plugins/additional_config.py b/ipatests/pytest_plugins/additional_config.py new file mode 100644 index 000000000..06ae97035 --- /dev/null +++ b/ipatests/pytest_plugins/additional_config.py @@ -0,0 +1,8 @@ +# +# Copyright (C) 2016 FreeIPA Contributors see COPYING for license +# + + +def pytest_addoption(parser): + parser.addoption("--no-pretty-print", action="store_false", + dest="pretty_print", help="Don't pretty-print structures") -- cgit