Merged in [12378] from rjsparks@nostrum.com:
Change the lines saying that a test has failed to make it easier to cut-paste to run the failed test again.
- Legacy-Id: 12386
Note: SVN reference [12378] has been migrated to Git commit be51bc2e78
This commit is contained in:
commit
623ce0e1bd
|
@ -64,6 +64,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()
|
||||
|
@ -232,7 +233,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