Changes between Initial Version and Version 1 of Ticket #24865, comment 2


Ignore:
Timestamp:
Jun 3, 2015, 12:59:44 PM (9 years ago)
Author:
Kay

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24865, comment 2

    initial v1  
    44I've looked the specs over and I'm not sure this warrants a test. The current Django tests for `update_contenttypes` already test for interactive. All this change does is automatically respond to it's prompt in the very same way the `test_interactive_true` does.
    55
    6 ````
     6{{{
    77def test_interactive_true(self):
    88        """
     
    1515        self.assertIn("Deleting stale content type", stdout.getvalue())
    1616        self.assertEqual(ContentType.objects.count(), self.before_count)
    17 ````
     17}}}
     18
    1819As for documentation I was considering placing it in the contenttypes.txt and adding a Management section to describe the `force_remove` argument and `remove_contenttypes` method. If that's an inappropriate place, please make a recommendation. Thanks again.
Back to Top