Ticket #23604: failing_test.patch

File failing_test.patch, 1.1 KB (added by Emmanuelle Delescolle, 10 years ago)

Failing test (patch for master)

  • tests/admin_views/tests.py

    commit f2a6c427b96911d8992a44b345646fceca8983a4
    Author: Emmanuelle Delescolle <emma@lasolution.be>
    Date:   Sun Oct 5 16:03:15 2014 +0200
    
        failing test
    
    diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
    index 518e8fd..2aea007 100644
    a b class AdminViewBasicTest(AdminViewBasicTestCase):  
    620620        response = self.client.get("/test_admin/admin/admin_views/m2mreference/", {TO_FIELD_VAR: 'id'})
    621621        self.assertEqual(response.status_code, 200)
    622622
     623        #Specifying the pk of this model should be allowed when this model defines a m2m relationship
     624        response = self.client.get("/test_admin/admin/admin_views/pizza/", {TO_FIELD_VAR: 'id'})
     625        self.assertEqual(response.status_code, 200)
     626
    623627        # #23329 - Specifying a field that is not refered by any other model directly registered
    624628        # to this admin site but registered through inheritance should be allowed.
    625629        response = self.client.get("/test_admin/admin/admin_views/referencedbyparent/", {TO_FIELD_VAR: 'id'})
Back to Top