Change the lines saying that a test has failed to make it easier to cut-paste to run the failed test again. Commit ready for merge.
- Legacy-Id: 12378
This commit is contained in:
parent
a3cc9df465
commit
be51bc2e78
|
@ -63,6 +63,7 @@ import debug # pyflakes:ignore
|
|||
import ietf
|
||||
import ietf.utils.mail
|
||||
from ietf.utils.test_smtpserver import SMTPTestServerDriver
|
||||
from ietf.utils.test_utils import TestCase
|
||||
|
||||
loaded_templates = set()
|
||||
visited_urls = set()
|
||||
|
@ -226,7 +227,7 @@ class CoverageReporter(Reporter):
|
|||
return result
|
||||
|
||||
|
||||
class CoverageTest(unittest.TestCase):
|
||||
class CoverageTest(TestCase):
|
||||
|
||||
def __init__(self, test_runner=None, **kwargs):
|
||||
self.runner = test_runner
|
||||
|
|
|
@ -39,6 +39,7 @@ import html5lib
|
|||
from datetime import datetime
|
||||
import urllib2 as urllib
|
||||
from difflib import unified_diff
|
||||
from unittest.util import strclass
|
||||
|
||||
import django.test
|
||||
from django.db import connection
|
||||
|
@ -295,3 +296,5 @@ class TestCase(django.test.TestCase):
|
|||
self.assertTrue(resp['Content-Type'].startswith('text/html'))
|
||||
self.assertValidHTML(resp.content)
|
||||
|
||||
def __str__(self):
|
||||
return "%s (%s.%s)" % (self._testMethodName, strclass(self.__class__),self._testMethodName)
|
||||
|
|
Loading…
Reference in a new issue