#23768: Rewrite template_tag.tests.TemplateTests as individual test cases
-------------------------------------+-------------------------------------
     Reporter:  prestontimmons       |                    Owner:  aaugustin
         Type:                       |                   Status:  closed
  Cleanup/optimization               |                  Version:  master
    Component:  Template system      |               Resolution:  fixed
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by berkerpeksag):

 I've found a bug in the `setup` decorator.

 {{{
 $ ./tests/runtests.py
 template_tests.syntax_tests.test_if.IfTagTests.test_if_tag_eq06
 Testing against Django installed in '/home/berker/projects/django/django'
 Traceback (most recent call last):
   File "./tests/runtests.py", line 410, in <module>
     options.reverse, options.modules)
   File "./tests/runtests.py", line 236, in django_tests
     test_labels or get_installed(), extra_tests=extra_tests)
   File "/home/berker/projects/django/django/test/runner.py", line 154, in
 run_tests
     suite = self.build_suite(test_labels, extra_tests)
   File "/home/berker/projects/django/django/test/runner.py", line 74, in
 build_suite
     tests = self.test_loader.loadTestsFromName(label)
   File "/usr/lib/python2.7/unittest/loader.py", line 109, in
 loadTestsFromName
     return self.suiteClass([parent(obj.__name__)])
   File "/usr/lib/python2.7/unittest/case.py", line 191, in __init__
     (self.__class__, methodName))
 ValueError: no such test method in <class
 'template_tests.syntax_tests.test_if.IfTagTests'>: inner
 }}}

 Here is a PR to fix this: https://github.com/django/django/pull/3671

--
Ticket URL: <https://code.djangoproject.com/ticket/23768#comment:18>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.07308bcb01afee42b56e5febfa074a68%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to