Django

Code

Changeset 6353

Show
Ignore:
Timestamp:
09/16/07 05:04:03 (1 year ago)
Author:
mtredinnick
Message:

Removed the test portion that relies on transactions when the backend is mysql or mysql_old (it's still in place for all other backends).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/fixtures/models.py

    r6264 r6353  
    1010 
    1111from django.db import models 
     12from django.conf import settings 
    1213 
    1314class Article(models.Model): 
     
    5455>>> Article.objects.all() 
    5556[<Article: XML identified as leading cause of cancer>, <Article: Django conquers world!>, <Article: Copyright is fine the way it is>, <Article: Poker on TV is great!>, <Article: Python program becomes self aware>] 
     57"""} 
    5658 
     59# Database flushing does not work on MySQL with the default storage engine, 
     60# because it requires transaction spuport. 
     61if settings.DATABASE_ENGINE not in ('mysql', 'mysql_old'): 
     62    __test__['API_TESTS'] += \ 
     63""" 
    5764# Reset the database representation of this app. This will delete all data. 
    5865>>> management.call_command('flush', verbosity=0, interactive=False) 
     
    7683>>> management.call_command('dumpdata', 'fixtures', format='json') 
    7784[{"pk": 3, "model": "fixtures.article", "fields": {"headline": "Time to reform copyright", "pub_date": "2006-06-16 13:00:00"}}, {"pk": 2, "model": "fixtures.article", "fields": {"headline": "Poker has no place on ESPN", "pub_date": "2006-06-16 12:00:00"}}, {"pk": 1, "model": "fixtures.article", "fields": {"headline": "Python program becomes self aware", "pub_date": "2006-06-16 11:00:00"}}] 
    78 """} 
     85""" 
    7986 
    8087from django.test import TestCase