Changes between Initial Version and Version 1 of Ticket #15081
- Timestamp:
- Jan 14, 2011, 6:44:49 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15081
- Property Resolution → worksforme
- Property Status new → closed
-
Ticket #15081 – Description
initial v1 1 1 Consider following case: 2 2 3 #model 4 {{{ 3 5 class sqltest(models.Model): 4 6 5 7 name = models.CharField(max_length=100, unique=True) 8 }}} 6 9 7 10 #test 8 11 {{{ 9 12 from django.test import TestCase 10 13 from testapp.app_test.models import sqltest … … 14 17 s = sqltest.objects.get(name='test1') 15 18 self.assertTrue(s) 16 19 }}} 17 20 18 21 #in <app>/sql/sqltest.py 22 {{{ 19 23 insert into app_test_sqltest (name) values ('test1'); 20 24 insert into app_test_sqltest (name) values ('test2'); 21 25 insert into app_test_sqltest (name) values ('test3'); 22 26 }}} 23 27 24 28 When running your tests will not find the test1 entry. This is not consistent with how django docs explain it (although not that much testing information on custom sql).