diff options
| author | Stanislav Laznicka <slaznick@redhat.com> | 2016-09-22 08:12:45 +0200 |
|---|---|---|
| committer | Martin Babinsky <mbabinsk@redhat.com> | 2016-09-30 09:55:58 +0200 |
| commit | ecd6cb4e45096f8d6653c6bb2e4701e683ce4e61 (patch) | |
| tree | 8918c4be4131895b41d29f0e08cd3a78b73ae417 /ipatests/pytest_plugins | |
| parent | 81ead980fb808b70d7590800518b655abe64948b (diff) | |
| download | freeipa-ecd6cb4e45096f8d6653c6bb2e4701e683ce4e61.tar.gz freeipa-ecd6cb4e45096f8d6653c6bb2e4701e683ce4e61.tar.xz freeipa-ecd6cb4e45096f8d6653c6bb2e4701e683ce4e61.zip | |
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 <mbasti@redhat.com>
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipatests/pytest_plugins')
| -rw-r--r-- | ipatests/pytest_plugins/additional_config.py | 8 |
1 files changed, 8 insertions, 0 deletions
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") |
