Re: [Django] #9031: Small bug if typo in testcase

2012-01-09 Thread Django
#9031: Small bug if typo in testcase
-+-
 Reporter:  guettli  |Owner:  nobody
 Type:  Uncategorized|   Status:  closed
Component:  Testing framework|  Version:  1.0
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Ready for
Has patch:  1|  checkin
  Needs tests:  0|  Needs documentation:  0
Easy pickings:  0|  Patch needs improvement:  0
 |UI/UX:  0
-+-
Changes (by guettli):

 * cc: hv@… (removed)
 * ui_ux:   => 0
 * type:   => Uncategorized
 * severity:   => Normal
 * easy:   => 0


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #9031: Small bug if typo in testcase

2008-10-14 Thread Django
#9031: Small bug if typo in testcase
+---
  Reporter:  guettli| Owner:  nobody
Status:  new| Milestone:
 Component:  Testing framework  |   Version:  1.0   
Resolution: |  Keywords:
 Stage:  Ready for checkin  | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by SmileyChris):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Ready for checkin
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Minor, but seems fair enough.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #9031: Small bug if typo in testcase

2008-09-11 Thread Django
#9031: Small bug if typo in testcase
---+
 Reporter:  guettli|   Owner:  nobody
   Status:  new|   Milestone:
Component:  Testing framework  | Version:  1.0   
 Keywords: |   Stage:  Unreviewed
Has_patch:  1  |  
---+
 If there is a typo in a testcase, you get an exception:

 {{{
 [EMAIL PROTECTED]:~/myproj> ./manage.py test myapp.hereisatypo.testSomething
 Traceback (most recent call last):
   File "./manage.py", line 11, in 
 execute_manager(etc.settings)
   File "/localhome/modw/django/core/management/__init__.py", line 340, in
 execute_manager
 utility.execute()
   File "/localhome/modw/django/core/management/__init__.py", line 295, in
 execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/localhome/modw/django/core/management/base.py", line 77, in
 run_from_argv
 self.execute(*args, **options.__dict__)
   File "/localhome/modw/django/core/management/base.py", line 96, in
 execute
 output = self.handle(*args, **options)
   File "/localhome/modw/django/core/management/commands/test.py", line 33,
 in handle
 failures = test_runner(test_labels, verbosity=verbosity,
 interactive=interactive)
   File "/localhome/modw/django/test/simple.py", line 129, in run_tests
 suite.addTest(build_test(label))
   File "/localhome/modw/django/test/simple.py", line 100, in build_test
 return TestClass(parts[2])
 TypeError: 'NoneType' object is not callable
 }}}

 The small patch results in a better error message:
 {{{
 [EMAIL PROTECTED]:~/myproj> ./manage.py test myapp.hereisatypo.testSomething
 Traceback (most recent call last):
   File "./manage.py", line 11, in 
 execute_manager(etc.settings)
   File "/localhome/modw/django/core/management/__init__.py", line 340, in
 execute_manager
 utility.execute()
   File "/localhome/modw/django/core/management/__init__.py", line 295, in
 execute
 self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/localhome/modw/django/core/management/base.py", line 77, in
 run_from_argv
 self.execute(*args, **options.__dict__)
   File "/localhome/modw/django/core/management/base.py", line 96, in
 execute
 output = self.handle(*args, **options)
   File "/localhome/modw/django/core/management/commands/test.py", line 33,
 in handle
 failures = test_runner(test_labels, verbosity=verbosity,
 interactive=interactive)
   File "/localhome/modw/django/test/simple.py", line 132, in run_tests
 suite.addTest(build_test(label))
   File "/localhome/modw/django/test/simple.py", line 102, in build_test
 parts[1], parts[0], parts[0]))
 ValueError: TestCase hereisatypo not found. Searched in myapp.models and
 myapp.tests
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---