From de8e158ce8e9a28cfa2a1c947512cd0e7eee872b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 14 May 2019 12:30:28 -0400 Subject: [PATCH] Un-truncate test failure diffs --- conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conftest.py b/conftest.py index ec683b154d6e..41728ac5b90f 100644 --- a/conftest.py +++ b/conftest.py @@ -2,6 +2,8 @@ Default unit test configuration and fixtures. """ from __future__ import absolute_import, unicode_literals +from unittest import TestCase + import pytest # Import hooks and fixture overrides from the cms package to @@ -9,6 +11,10 @@ from cms.conftest import _django_clear_site_cache, pytest_configure # pylint: disable=unused-import +# When using self.assertEquals, diffs are truncated. We don't want that, always +# show the whole diff. +TestCase.maxDiff = None + @pytest.fixture(autouse=True) def no_webpack_loader(monkeypatch):