summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2007-02-10Backport generic-relations data loss fix from [4428]. Thanks to Malcolm for ↵James Bennett
pointing out my stupid error the first time I tried this. git-svn-id: http://code.djangoproject.com/svn/django/branches/0.95-bugfixes@4476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-28Added urlpatterns_reverse unit tests, which test the reverse lookup of URLsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-27Fixed #1650: the {% extends %} tag now can extend a Template object passed ↵Jacob Kaplan-Moss
into the context. Thanks, clelland@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-22Fixed #2397 -- fixed markdown test to be a bit more lenient in what counts as aMalcolm Tredinnick
pass due to whitespace differences between markdown versions. Thanks to shields@msrl.com for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-15Fixed the timeuntil and timesince filter tests to not fail if the system clockMalcolm Tredinnick
ticks over during the tests. Also fixed the template tests to be able to run in standalone mode again. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-11Small formatting change to m2m_and_m2o model unit testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-11Changed runtests.py to set USE_I18N=True for testingAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixed #1578 -- fixed a corner-case where we still wanting core=True attributesMalcolm Tredinnick
on a model that was not being edited inline. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixes #2202 -- Added ability to customize output of pluralize filter to ↵Russell Keith-Magee
handle irregular cases (walrus/walruses, cherry/cherries). Thanks to gid for the suggestion and the initial patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@3272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixes #1338, Refs #1400, #2237 -- Modified variable resolution to allow ↵Russell Keith-Magee
template 'if' statements to work if TEMPLATE_STRING_IF_INVALID is set. Modified unit tests to force the use of this variable, so that returning '' isn't confused with an actual failure. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-01Fixes #2271 -- Added code to imply !__exact on any query argument that ↵Russell Keith-Magee
doesn't finish with a known query term. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-01Fixed #2217 -- Allowed raw objects to be used in __exact and __in query ↵Russell Keith-Magee
terms. Existing use of primary keys in query terms is preserved. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-29Added a JSON serializer, a few more tests, and a couple more lines of docs.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-28Added initial cut at serialization framework, along with some basic tests ↵Jacob Kaplan-Moss
and a stab at some docs. This is all a bit rough right now, so expect some bumps. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-28Fixed #1754, #2211, #2192 -- allow date filtering comparisons to use strings asMalcolm Tredinnick
well as date objects. Fixed a couple of admin crashes as well. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-27Added {{{Manager.create()}}} method to create and save an object in a single ↵Jacob Kaplan-Moss
step. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-27Fixes #2216 -- Added extra tests for model validity, and cleaned up warning ↵Russell Keith-Magee
messages for existing tests. Models are now invalid if the query string required to access a field (or related object) would clash with the name of another field (or related object). Previous tests only checked the accessor names, not the query string. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-23Fixed #1661 -- Added logic for string-form model references in the 'to' ↵Russell Keith-Magee
argument of OneToOneFields. Includes regression test. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-23Fixed #1662 -- Added resolver for string-form model references for models ↵Russell Keith-Magee
that have already been loaded, with tests to validate both forward and backward referenced model names. Light refactoring of model loading to make regression tests behave more like normal model loading. Also clarifies the text of some validation errors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed the "timeuntil" and "timesince" tests so that they don't fail on aMalcolm Tredinnick
machine under heavy load. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2163 -- Corrected typo when handling datetimes with timezones in the ↵Malcolm Tredinnick
timesince filter. Thanks, Alex Dedul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2053 -- added an optional comparison argument to the "timesince" filter.Malcolm Tredinnick
Added a "timeuntil" filter that works analogously. Thanks, john@sneeu.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed runtests.py problem from [3177] where it assumed you were running the ↵Adrian Holovaty
tests from within the tests directory git-svn-id: http://code.djangoproject.com/svn/django/trunk@3181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Added semicolon test to regressiontests/initial_sql_regress/sql/simple.sqlAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #2119 -- fixed problems with splitting SQL statements into separateMalcolm Tredinnick
statements. Uses a patch from eaw@woudy.org and some contributions from jpellerin@gmail.com. Also fixes #2034 and #1935. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #2161 -- handle trailing newlines in initial SQL data. IncludesMalcolm Tredinnick
regression test. Thanks to russellm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Added regressions tests to ensure that one-to-one and many-to-many fieldsMalcolm Tredinnick
continue to interact properly. Refs #1064. Refs #1506. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed bad formatting in 'lookup' model tests from [3157]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #2195 -- Fixed spelling error in generic_relations model test. Other ↵Adrian Holovaty
errors were fixed earlier today. Thanks, Tom Tobin git-svn-id: http://code.djangoproject.com/svn/django/trunk@3160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-20Fixed #1857 -- Fixed get_previous_by_FIELD and get_next_by_FIELD to workMalcolm Tredinnick
properly with keyword arguments. Patch from tom@jerakeen.org. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-19Fixed some small typos in generic_relations model testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-19Fixed #1683 -- Permit initialising models using settable properties as well asMalcolm Tredinnick
field names. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-18Fixed #2181 -- allow '{' and '}' to be escaped via {% templatetag ... %}.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-16Added generic foreign key support to Django. Much thanks to Ian Holsman and Jacob Kaplan-Moss
Luke Plant -- most of this code is theirs. Documentation is to follow; for now see the example/unit test. Fixes #529. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-16Test harness actually now installs contrib apps so they can be used in tests.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-15Fixed #2164 -- Create correct SQL when pk column name is not the same as theMalcolm Tredinnick
attribute name. Thanks, Russell Cloran. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-12Fixed the empty model saving case so that it retrieves the primary key id. AlsoMalcolm Tredinnick
updated the tests to test this case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Tests to avoid regressions for ticket #2108. See also r3115.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2109 -- Convert old-style classes to new-style classes throughout ↵Adrian Holovaty
Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Added django.template.Token.split_contents() and used it to add support for ↵Adrian Holovaty
strings with spaces in {% ifchanged %} git-svn-id: http://code.djangoproject.com/svn/django/trunk@3112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2026 -- Added support for 'and' in template 'if' tags, added dozens ↵Adrian Holovaty
of unit tests and updated docs. Thanks, ckknight git-svn-id: http://code.djangoproject.com/svn/django/trunk@3108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2108 -- do not try to save an empty model.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07Fix test output as a result of the change in r3094.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-07Added Manager.get_or_create()Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-04Changed all model unit tests to use __str__() instead of __repr__(). Also ↵Adrian Holovaty
slightly changed related-object DoesNotExist exception message to use repr instead of str git-svn-id: http://code.djangoproject.com/svn/django/trunk@3075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-03Changed 'transactions' model unit test NOT to be executed for MySQLAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-03Fixed #2077 -- Renamed 'repr' model tests to 'str'Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01Fixed unit-test output error in m2m_and_m2o unit tests, due to a change in ↵Adrian Holovaty
the model's __repr__ earlier today git-svn-id: http://code.djangoproject.com/svn/django/trunk@3041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-01Fixed #720 -- Added first_on_page() and last_on_page() methods to ↵Adrian Holovaty
ObjectPaginator. Thanks, m@bagai.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-31Cleaned up numbering with model unit testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3031 bcc190cf-cafb-0310-a4f2-bffc1f526a37