legutierr / pirate-politics

Automatically exported from code.google.com/p/pirate-politics
0 stars 0 forks source link

Error deleting topics. #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install current version of pirate-politics
2. Run the tests for pirate_extensions:
{{{
python manage.py test pirate_extensions
}}}
3. Observe the output.

What is the expected output? What do you see instead?

Deleting a topic should not produce an error.  Instead, the following exception 
is printed out during the test cleanup:
{{{
File "/project/src/pirate-politics/pirate_extensions/tests.py", line 116, in 
pirate_extensions.tests.__test__.pp_get_tagged_objects@/project/src/pirate-polit
ics/pirate_extensions/templatetags/taggingtags.pyc
Failed example:
    topic.delete()
Exception raised:
    Traceback (most recent call last):
      File "/project/src/pirate-politics/django/test/_doctest.py", line 1267, in __run
      File "<doctest pirate_extensions.tests.__test__.pp_get_tagged_objects@/LGS/src/pirate-politics/pirate_extensions/templatetags/taggingtags.pyc[25]>", line 1, in <module>
      File "/project/src/pirate-politics/django/db/models/base.py", line 659, in delete
      File "/project/src/pirate-politics/django/db/models/query.py", line 1326, in delete_objects
      File "/project/src/pirate-politics/django/db/models/sql/subqueries.py", line 84, in clear_related
      File "/project/src/pirate-politics/djangotoolbox/db/basecompiler.py", line 337, in execute_sql
    NotImplementedError: No updates
}}}
This is a problem somewhere inside of the Topic model.  Although the test that 
is failing is a test of django-tagging functionality, this error occurs after 
the django-tagging tests themselves have run successfully.

Original issue reported on code.google.com by leguti...@gmail.com on 17 Aug 2010 at 2:12

GoogleCodeExporter commented 8 years ago

Original comment by leguti...@gmail.com on 17 Aug 2010 at 2:12