summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
AgeCommit message (Collapse)Author
2015-02-08Replaced hardcoded URLs in admin_* testsClaude Paroz
Refs #15779. This will allow easier admin URL changes, when needed. Thanks Simon Charette for the review.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-04Fixed #14497 -- Improved admin widget for "read only" FileFieldsRiccardo Magliocchetti
Based on patch by Adam J Forster, Paul Collins, and Julien.
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-10Fixed #13165 -- Added edit and delete links to admin foreign key widgets.Simon Charette
Thanks to Collin Anderson for the review and suggestions and Tim for the final review.
2014-12-16Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.Diego Guimarães
2014-11-03Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-09-14Fixed occasional selenium test failure on Jenkins with Chrome 36+.Tim Graham
Previously find_element_by_id('id_password') on the next line failed with NoSuchElementException and selenium.page_source was <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>. Possibly related: https://code.google.com/p/selenium/issues/detail?id=1969.
2014-08-14Fixed test failure on python 3.x.Florian Apolloner
2014-08-13Fixed #18767 -- Fixed admin calendar for other locales than English.Maxime Turcotte
Refactored openCalendar function from DateTimeShortcuts.js. Now, when entered manually in the input field, the date will show up correctly on the calendar for locales that don't use "-" for separator. Thanks charettes for revivew and Alexey Boriskin for some of the patch.
2014-08-12Fixed #23262 -- Made SelectFilter2.js move items on enter Key press.Collin Anderson
2014-07-24Removed usage of deprecated switch_to_*() selenium methods.Tim Graham
2014-07-09Fixed #19671 -- Added warnings that null and validators are ignored for ↵Anubhav Joshi
ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
2014-07-07Fixed #22909 -- Removed camelCasing in some tests.Tim Graham
Thanks brylie.
2014-06-26Fixed #22894 -- Made admin add related/raw ID fields widgets customizable.Riccardo Magliocchetti
Decoupled behavior and style from the RelatedFieldWidgetWrapper and ForeignKeyRawIdWidget.
2014-06-02Revert "Fixed #19303 -- Fixed ModelAdmin.formfield_overrides on fields with ↵Tim Graham
choices" This reverts commit 9d1987d7679165ad3a7c2b713a8a488cc1421905.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-22Made m2m fields form help_text munging specific to admin widgets.Ramiro Morales
Refs #9321 and follow-up to e80de93af6a0a21a9063a55c4d6d20e3927243e9.
2014-03-21Removed hard-coded help_text for ManyToManyFields that use a SelectMultiple ↵Tim Graham
widget Per deprecation timeline; refs #9321.
2014-01-14Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn
This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
2014-01-03Fixed selenium failure.Florian Apolloner
This fixes (at least according to tests on the ci itself) admin_widgets.tests.RelatedFieldWidgetSeleniumFirefoxTests.test_foreign_key_using_to_field (http://ci.djangoproject.com/job/Django/database=mysql_gis,python=python2.7/3792/testReport/junit/admin_widgets.tests/RelatedFieldWidgetSeleniumFirefoxTests/test_foreign_key_using_to_field/) The cause for this issue seems to be that wait_page_loaded was executed before click fired and as such no profile got saved (again just an educated guess, but with this fix I can no longer reproduce it -- fingers crossed).
2014-01-03Fixed a few flaky selenium tests.Florian Apolloner
Many thanks go to David Burns (@AutomatedTester) for helping me understand css selectors and pointing me towards the correct selenium methods.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-03Merging in masterJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
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-02Fixed all E261 warningscoagulant
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-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed E225 pep8 warnings.Tim Graham
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21267 -- Fixed E502 pep8 warningsAlasdair Nicol
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
2013-10-11Fixed assorted flake8 errors.Tim Graham
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-09-15Fixed a timing edge case in the RelatedFieldWidgetSeleniumFirefoxTests.Florian Apolloner
By settings an implicit wait timeout for the find_* methods we can wait till the javascript code add the new option to the DOM. See http://ci.djangoproject.com/job/Django/database=mysql_gis,python=python3.3/3174/testReport/junit/admin_widgets.tests/RelatedFieldWidgetSeleniumFirefoxTests/test_foreign_key_using_to_field/ Stacktrace: Traceback (most recent call last): File "/var/lib/jenkins/jobs/Django/workspace/database/mysql_gis/python/python3.3/tests/admin_widgets/tests.py", line 1060, in test_foreign_key_using_to_field self.assertEqual(username_value, new_option.get_attribute('value')) AssertionError: 'newuser' != 'testser' - newuser + testser
2013-09-10Fixed #4574 -- Added CSS classes to the admin calendar widget for better ↵Roberto Aguilar
control over styling.
2013-09-07Fixed #20836 -- Ensure that the ForeignKey's to_field attribute is properly ↵Julien Phalip
considered by the admin's interface when creating related objects. Many thanks to Collin Anderson for the report and patch and to Peter Sheats for the test.
2013-09-06Fixed #20821 -- Added tooltips to Admin SelectBox widgetRudy Mutter
The Admin widget, which can be used to filter multiple selects can sometimes be too narrow and hide information such as user permissions. This commit adds tooltips to the select options so that a user can hover over and see the hidden text.
2013-09-03Fixed "indentation is not a multiple of four" pep8 issues.Tim Graham
2013-08-22Fixed #19303 -- Fixed ModelAdmin.formfield_overrides on fields with choicesLukasz Balcerzak
2013-08-16Combine consecutive with statementsClaude Paroz
Python 2.7 allows to combine several 'with' instructions.
2013-08-13Removed unneeded conditional_escapes from the testsuite.Florian Apolloner
2013-08-13Apply autoescaping to AdminURLFieldWidget.Jacob Kaplan-Moss
This is a security fix; disclosure to follow shortly.
2013-08-06Fixed #20865 -- Fixed raw_id_fields to work with callable limit_choices_to.Collin Anderson