Django

Code

Changeset 9439

Show
Ignore:
Timestamp:
11/14/08 08:52:55 (2 months ago)
Author:
kmtracey
Message:

[1.0.X] Fixed #9592 -- Create data for the generic_inline_admin test during setup instead of via a fixutre since it uses a content type id which will vary depending on what other tests have been run.

r9438 from trunk.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/releases/1.0.X

    • Property svnmerge-integrated changed from /django/trunk:1-9097,9099-9102,9104-9109,9111,9113-9144,9146-9151,9153-9156,9158-9159,9161-9187,9189-9247,9249-9262,9264-9277,9279-9298,9301-9302,9305-9331,9333-9343,9345,9347,9350-9352,9355-9396,9399-9416,9418 to /django/trunk:1-9097,9099-9102,9104-9109,9111,9113-9144,9146-9151,9153-9156,9158-9159,9161-9187,9189-9247,9249-9262,9264-9277,9279-9298,9301-9302,9305-9331,9333-9343,9345,9347,9350-9352,9355-9396,9399-9438
  • django/branches/releases/1.0.X/tests/regressiontests/generic_inline_admin/tests.py

    r9413 r9439  
    88 
    99class GenericAdminViewTest(TestCase): 
    10     fixtures = ['users.xml', 'model-data.xml'
     10    fixtures = ['users.xml'
    1111 
    1212    def setUp(self): 
     
    1717        settings.TEMPLATE_DEBUG = True 
    1818        self.client.login(username='super', password='secret') 
     19         
     20        # Can't load content via a fixture (since the GenericForeignKey 
     21        # relies on content type IDs, which will vary depending on what 
     22        # other tests have been run), thus we do it here. 
     23        e = Episode.objects.create(name='This Week in Django') 
     24        m = Media(content_object=e, url='http://example.com/podcast.mp3') 
     25        m.save() 
    1926     
    2027    def tearDown(self):