- Timestamp:
- 11/06/08 05:19:13 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/fixtures_regress/models.py
r8515 r9357 8 8 latin_name = models.CharField(max_length=150) 9 9 count = models.IntegerField() 10 10 11 11 def __unicode__(self): 12 12 return self.common_name … … 57 57 title = models.CharField(max_length=255) 58 58 channels = models.ManyToManyField(Channel) 59 59 60 60 class Meta: 61 61 ordering = ('id',) … … 114 114 No fixture data found for 'bad_fixture2'. (File format may be invalid.) 115 115 116 # Loading a fixture file with no data returns an error 117 >>> management.call_command('loaddata', 'empty', verbosity=0) 118 No fixture data found for 'empty'. (File format may be invalid.) 119 120 # If any of the fixtures contain an error, loading is aborted 121 # (Regression for #9011 - error message is correct) 122 >>> management.call_command('loaddata', 'bad_fixture2', 'animal', verbosity=0) 123 No fixture data found for 'bad_fixture2'. (File format may be invalid.) 124 116 125 >>> sys.stderr = savestderr 117 126 … … 124 133 125 134 ############################################### 126 # Test for ticket #7572 -- MySQL has a problem if the same connection is 135 # Test for ticket #7572 -- MySQL has a problem if the same connection is 127 136 # used to create tables, load data, and then query over that data. 128 137 # To compensate, we close the connection after running loaddata.
