From b628a0844b1e81c2b1baf88424d8a0fb73310ae9 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 7 Dec 2016 11:03:32 +0000 Subject: [PATCH] Changed to using TestCase from ietf.utils in some places, for consistent test-suite failure output. - Legacy-Id: 12467 --- ietf/api/tests.py | 4 +++- ietf/utils/tests.py | 2 +- ietf/utils/tests_restapi.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ietf/api/tests.py b/ietf/api/tests.py index abac94b99..41829d678 100644 --- a/ietf/api/tests.py +++ b/ietf/api/tests.py @@ -2,7 +2,7 @@ import os import sys import json -from django.test import Client, TestCase +from django.test import Client from django.conf import settings from django.utils.importlib import import_module from django.db import models @@ -12,6 +12,8 @@ from tastypie.test import ResourceTestCaseMixin import debug # pyflakes:ignore +from ietf.utils.test_utils import TestCase + OMITTED_APPS = ( 'ietf.secr.meetings', 'ietf.secr.proceedings', diff --git a/ietf/utils/tests.py b/ietf/utils/tests.py index 2c5558c02..60e518a0b 100644 --- a/ietf/utils/tests.py +++ b/ietf/utils/tests.py @@ -18,7 +18,6 @@ from django.template import Context from django.template.defaulttags import URLNode from django.templatetags.static import StaticNode from django.template.loaders.filesystem import Loader -from django.test import TestCase import debug # pyflakes:ignore @@ -27,6 +26,7 @@ from ietf.utils.management.commands import pyflakes from ietf.utils.mail import send_mail_text, send_mail_mime, outbox from ietf.utils.test_data import make_test_data from ietf.utils.test_runner import get_template_paths, set_coverage_checking +from ietf.utils.test_utils import TestCase from ietf.group.models import Group skip_wiki_glue_testing = False diff --git a/ietf/utils/tests_restapi.py b/ietf/utils/tests_restapi.py index 57dc4f6a3..bc27ac68a 100644 --- a/ietf/utils/tests_restapi.py +++ b/ietf/utils/tests_restapi.py @@ -4,11 +4,11 @@ import debug debug.debug = True from django.core.urlresolvers import reverse -from django.test import TestCase from tastypie.test import ResourceTestCaseMixin from ietf.utils.test_data import make_test_data +from ietf.utils.test_utils import TestCase class RestApi(ResourceTestCaseMixin, TestCase): def list_recursively(self, resource, format):