summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-11-03Fixed #21322 -- Error message when CSRF cookie is missingBouke Haarsma
Thanks to Henrik Levkowetz and olau for their reports and initial patches.
2013-11-03Fixed all E251 violationsAlex Gaynor
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-11-03Merge pull request #1852 from jasonamyers/cleanup/PEP8Alex Gaynor
Cleanup/pep8 tests
2013-11-03Merging in masterJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-03Fixed some testfailures on jenkins.Florian Apolloner
Depending on the order of the tests beeing run, 10 can be a valid pk, 0 can never be a valid pk and as such we will get the wanted ValidationError.
2013-11-03Fixed #20849 -- ModelForms do not work well with prefetch_related.Jim Bailey
model_to_dict() (used when rendering forms) queries the database to get the list of primary keys for ManyToMany fields. This is unnecessary if the field queryset has been prefetched, all the keys are already in memory and can be obtained with a simple iteration.
2013-11-03Fixed #14170 -- Reset i18n cache when settings changeBouke Haarsma
2013-11-03Merge pull request #1853 from loic/dstAymeric Augustin
Fixed failing test around DST change.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02PEP8Jason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed failing test around DST change.Loic Bistuer
The timezone arithmetic done in JS can be off by one hour around DST change. We work around this issue by adding one extra hour to the test error margin when we detect a DST change is near. Refs #20663.
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed syntax error in queries/tests.pyAnssi Kääriäinen
2013-11-02Fixed #14511 -- bug in .exclude() queryAnssi Kääriäinen
2013-11-02Fixed flake8 E241Boryslav Larin
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-11-02Fixed #21375 -- related_name='+' clashed with other '+' namesAnssi Kääriäinen
2013-11-02Fixed #21366 -- regression in join promotion logicAnssi Kääriäinen
The regression was caused by ecaba3602837d1e02fe1e961f7d3bf9086453259 and affected OR connected filters.
2013-11-02Fixed #21341 -- Eased https requests with the test clientUnai Zalakain
All request methods of ``django.test.client.Client`` receive a ``secure`` argument that defaults to ``False`` indicating whether or not to make the request through https. Thanks Aymeric Augustin for the review.
2013-11-02Merge pull request #1799 from Bouke/tickets/9523Aymeric Augustin
Fixed #9523 -- Restart runserver after translation MO files change
2013-11-02Fixed #21324 -- Translate CSRF failure viewBouke Haarsma
Thanks to Claude Paroz for the original patch.
2013-11-02Fixed #9523 -- Restart runserver after translation MO files changeBouke Haarsma
Thanks to Krzysztof Kulewski for the initial patch.
2013-10-31Fixed #18508 -- tests for repeated deletion bug in ModelFormSetOle Laursen
The ticket's issue was already fixed by patch for #14877.
2013-10-30Fixed #14877 -- repeated deletion using formsetsAnssi Kääriäinen
When a formset contained deletion for an existing instance, and the instance was already deleted, django threw an exception. A common cause for this was resubmit of the formset. Original patch by Trac alias olau. In addition this commit cleaned some code in _construct_form(). This was needed as the primary key value the user submitted wasn't converted correctly to python value in case the primary key field was also a related field.
2013-10-30Fixed some flake8 issuesAlex Gaynor
2013-10-30Auto-apply initial migrations if their tables exist already.Andrew Godwin
2013-10-30Added some more tests for the debug page.Baptiste Mispelon
* Missing tests for ticket #12744 * Tests for the cleanse_setting feature (leaving out sensitive settings from the debug page)
2013-10-30Fixed #21345: Don't evaluate callable settings in the debug page.Baptiste Mispelon
Thanks to crass for the report.
2013-10-29Fixed a F811 warning introduced by 35db9d58d6.Simon Charette
2013-10-29Fixed #8261 -- ModelAdmin hook for customising the "show on site" buttonUnai Zalakain
``ModelAdmin.view_on_site`` defines wether to show a link to the object on the admin detail page. If ``True``, cleverness (i.e. ``Model.get_absolute_url``) is used to get the url. If it's a callable, the callable is called with the object as the only parameter. If ``False``, not link is displayed. With the aim of maitaining backwards compatibility, ``True`` is the default.
2013-10-28Rearranged some i18n testsClaude Paroz
Compilation/extraction tests are now properly skipped when gettext commands are unavailable.
2013-10-27Rearranged some file-related testsClaude Paroz
Just moving around some tests to be more logically grouped.
2013-10-27Fixed test that reads a migration file from disk.Ramiro Morales
We need to make sure content read from the file is decoded from UTF-8 right from the start so Python doesn't try to use another encoding (read: ASCII/CP1252 under Windows.)
2013-10-26Fixed all the E203 violationsAlex Gaynor
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-25Undelete the login() call inadvertantly removed in 4e0a2fe59cClaude Paroz
Refs #21271.
2013-10-24Fixed #21271 -- Added timeout parameter to SMTP EmailBackend.SusanTan
Thanks Tobias McNulty and Tim Graham for discussions and code review. Thanks Andre Cruz the suggestion and initial patch.
2013-10-24Fixed #21219 -- Added a way to set different permission for static files.Vajrasky Kok
Previously, when collecting static files, the files would receive permission from FILE_UPLOAD_PERMISSIONS. Now, there's an option to give different permission from uploaded files permission by subclassing any of the static files storage classes and setting the file_permissions_mode parameter. Thanks dblack at atlassian.com for the suggestion.
2013-10-24Fixed #20338 -- Stripped ending dot during host validationClaude Paroz
Thanks manfre for the report and Timo Graham for the review.
2013-10-24Fixed #21227 -- Added workaround for selenium test failuresKevin Christopher Henry
Added a refresh() before quit() in the selenium tests, since this solves the problem of spurious test failures in some environments.
2013-10-24Fixed #21299 - Changed filters from title to capfirst on admin inline formsets.Renato Oliveira
Previously there was a mixture of the two which resulted in inconsistent casing.
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-23Fixed #20945 -- Allowed cache tag to use a specific cache.Curtis Maloney
2013-10-23Fixed #19941 -- Removed sys.path hack when running the test suite.Tim Graham
Thanks jezdez for the suggestion.
2013-10-23Fix migration planner to fully understand squashed migrations. And test.Andrew Godwin
2013-10-23Fixed #12027 -- Fixed EmailValidator to reject a trailing dot.Tim Graham
Thanks Klas H for the report and claudep for the patch.
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol