dlamotte / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

the unit tests in tagging/tests/tests.py are an amorphous blob #212

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The unit tests in tagging/tests/tests.py are one big docstring.  This makes
it hard to figure out exactly what's failing when something goes wrong.  It
also makes it difficult to know exactly what assumptions a given line has.
 Granted, its current form makes for a nice bit of documentation, but I'd
much rather have regular unit tests.

I've done the work to convert the entire docstring to unit tests and am
attaching a patch against revision 156 of the trunk.

Original issue reported on code.google.com by anb...@gmail.com on 20 Aug 2009 at 10:25

GoogleCodeExporter commented 8 years ago
Here's a patch to convert the tests from a doctest to subclasses of 
django.test.TestCase.

Original comment by anb...@gmail.com on 20 Aug 2009 at 10:27

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in r166 — thanks!

Original comment by bros...@gmail.com on 23 Aug 2009 at 5:16