summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2016-02-24Fixed #26266 -- Output the primary key in the GeoJSON serializer propertiesClaude Paroz
Thanks Tim Graham for the review.
2016-02-24Fixed #26267 -- Fixed BoundField to reallow slices of subwidgets.Jon Dufresne
2016-02-23Fixed #23832 -- Added timezone aware Storage API.James Aylett
New Storage.get_{accessed,created,modified}_time() methods convert the naive time from now-deprecated {accessed,created_modified}_time() methods into aware objects in UTC if USE_TZ=True.
2016-02-23Fixed #26232 -- Fixed Popen mocking environment in i18n testsClaude Paroz
Refs #25925. Thanks Jeroen Pulles for the report.
2016-02-23Used setupTestData in prefetch_related tests.Simon Charette
2016-02-23Prevented static file corruption when URL fragment contains '..'.Aymeric Augustin
When running collectstatic with a hashing static file storage backend, URLs referencing other files were normalized with posixpath.normpath. This could corrupt URLs: for example 'a.css#b/../c' became just 'c'. Normalization seems to be an artifact of the historical implementation. It contained a home-grown implementation of posixpath.join which relied on counting occurrences of .. and /, so multiple / had to be collapsed. The new implementation introduced in the previous commit doesn't suffer from this issue. So it seems safe to remove the normalization. There was a test for this normalization behavior but I don't think it's a good test. Django shouldn't modify CSS that way. If a developer has rendundant /s, it's mostly an aesthetic issue and it isn't Django's job to fix it. Conversely, if the user wants a series of /s, perhaps in the URL fragment, Django shouldn't destroy it. Refs #26249.
2016-02-23Fixed #26249 -- Fixed collectstatic crash for files in STATIC_ROOT ↵Aymeric Augustin
referenced by absolute URL. collectstatic crashed when: * a hashing static file storage backend was used * a static file referenced another static file located directly in STATIC_ROOT (not a subdirectory) with an absolute URL (which must start with STATIC_URL, which cannot be empty) It seems to me that the current code reimplements relative path joining and doesn't handle edge cases correctly. I suspect it assumes that STATIC_URL is of the form r'/[^/]+/'. Throwing out that code in favor of the posixpath module makes the logic easier to follow. Handling absolute paths correctly also becomes easier.
2016-02-23Fixed a stray __unicode__() method in auth_tests.Tim Graham
2016-02-23Fixed #25670 -- Allowed dictsort to sort a list of lists.Andrew Kuchev
Thanks Tim Graham for the review.
2016-02-23Fixed #26263 -- Deprecated Context.has_key()Tim Graham
2016-02-23Used call_command return value in staticfiles testsClaude Paroz
Refs #26190.
2016-02-23Fixed #26190 -- Returned handle() result from call_commandClaude Paroz
Thanks Tim Graham for the review.
2016-02-22Fixed #26187 -- Removed weak password hashers from PASSWORD_HASHERS.Tim Graham
2016-02-21Fixed #26238 -- Raised explicit error for non-editable field in ModelFormClaude Paroz
Thanks Luke Crouch for the report and Simon Charette for the review.
2016-02-19Fixed #25653 -- Made --selenium run only the selenium tests.Akshesh
2016-02-19Refs #25735 -- Made @tag decorator importable from django.test.Tim Graham
2016-02-19Fixed #25349 -- Allowed a ModelForm to unset a fields with blank=True, ↵haxoza
required=False.
2016-02-18Fixed #26204 -- Reallowed dashes in top-level domains for URLValidator.Tim Graham
Thanks Shai Berger for the review.
2016-02-18Fixed #26107 -- Added option to int_list_validator() to allow negative integers.Akshesh
2016-02-17Fixed flake8 typo.Tim Graham
2016-02-17Fixed #26219 -- Fixed crash when filtering by Decimal in RawQuery.Akshesh
2016-02-17Refs #19353 -- Added tests for using custom user models with built-in auth ↵Berker Peksag
forms. Also updated topics/auth/customizing.txt to reflect that subclasses of UserCreationForm and UserChangeForm can be used with custom user models. Thanks Baptiste Mispelon for the initial documentation.
2016-02-17Fixed #25735 -- Added support for test tags to DiscoverRunner.Jakub Paczkowski
Thanks Carl Meyer, Claude Paroz, and Simon Charette for review.
2016-02-16Fixed #26215 -- Fixed RangeField/ArrayField serialization with None valuesClaude Paroz
Also added tests for HStoreField and JSONField. Thanks Aleksey Bukin for the report and Tim Graham for the initial patch and the review.
2016-02-15Fixed #24727 -- Prevented ClearableFileInput from masking exceptions on Python 2Berker Peksag
2016-02-15Added get_subprocess_args() function to runtests.pyTim Graham
2016-02-15Fixed #26212 -- Made forms.FileField and translation.lazy_number() picklable.Alexey Kotlyarov
2016-02-15Refs #25304 -- Added assertion for Command.requires_migrations_checks default.Tim Graham
2016-02-15Fixed #26126 -- Fixed transient failure of test_max_age_expirationBerker Peksag
2016-02-15Fixed #26193 -- Made urlize() trim multiple trailing punctuation.Jon Dufresne
2016-02-13Fixed #11665 -- Made TestCase check deferrable constraints after each test.Jon Dufresne
2016-02-12Fixed #25304 -- Allowed management commands to check if migrations are applied.Mounir Messelmeni
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-02-12Refs #25979 -- Dropped compatiblity for running tests on PostgreSQL < 9.2.Tim Graham
2016-02-12Updated allow_migrate() signature in check framework testsMarkus Holtermann
2016-02-11Fixed #26209 -- Masked sensitive settings in debug reports regardless of case.François Freitag
2016-02-11Fixed #26196 -- Made sure __in lookups use to_field as default.Anssi Kääriäinen
Thanks Simon Charette for the test.
2016-02-11Fixed #26179 -- Removed null assignment check for non-nullable foreign key ↵ZachLiuGIS
fields.
2016-02-11Fixed #26153 -- Reallowed Q-objects in ↵Anssi Kääriäinen
ForeignObject.get_extra_descriptor_filter().
2016-02-11Removed obsolete test app in runtests.py.Jon Dufresne
2016-02-10Fixed #26014 -- Added WSGIRequest content_type and content_params attributes.Curtis Maloney
Parsed the CONTENT_TYPE header once and recorded it on the request.
2016-02-10Fixed #26154 -- Deprecated CommaSeparatedIntegerFieldBrobin
2016-02-09Fixed #26173 -- Prevented localize_input() from formatting booleans as numbers.Marcin Markiewicz
2016-02-09Refs #26112 -- Fixed aggregate GIS test on Oracle.Shai Berger
Made sure the test doesn't try to aggregate over MultiPolygonField and made AreaField turn decimals into floats on the way from the DB. Thanks Daniel Wiesmann, Jani Tiainen, and Tim Graham for review and discussion.
2016-02-08Refs #25684 -- Silenced logging output in servers tests.Tim Graham
2016-02-08Fixed #26162 -- Checked query name clashes of hidden relationships.Simon Charette
Although reverse accessor clashes should be skipped query name can't be hidden. Thanks to Ian Foote and Tim Graham for the review.
2016-02-08Made @override_settings(ROOT_URLCONF=...) consistent.Tim Graham
2016-02-08Refs #24007 -- Removed an apps.populate() call in model unpickling that can ↵Tim Graham
cause deadlocks.
2016-02-08Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.Tim Graham
2016-02-06Fixed #26175 -- Removed SHA1 password hashes in tests.Tim Graham