summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_widgets/tests.py
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-20Made a couple of selenium tests wait for page loadedAnssi Kääriäinen
The admin_widgets tests were issuing click() to the browser but didn't wait for the effects of those clicks. This caused the resulting request to be processed concurrently with the test case. When using in-memory SQLite this caused weird failures. Also added wait_page_loaded() to admin selenium tests for code reuse. Fixed #19856
2013-01-25Moved has_changed logic from widget to form fieldClaude Paroz
Refs #16612. Thanks Aymeric Augustin for the suggestion.
2012-12-08Fixed #19423 -- Prevented ModelAdmin sharing widgets due to formfield_overridesClaude Paroz
Thanks joebuyer at manycycles.com for the report and Simon Charette for the review.
2012-11-03Fixed #17549 -- Added a clickable link for URLFields in admin change list.Ulrich Petri
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-04-30Ensured tests pass using custom PASSWORD_HASHERS.Anssi Kääriäinen
2012-04-14Converted more test assertions to assert[Not]Contains.Claude Paroz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-08Fixed #18035 -- Removed deprecated AdminMediaHandler, as per official ↵Claude Paroz
deprecation timeline. Thanks Jannis Leidel and Ramiro Morales for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17879 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-05Enabled the existing admin Selenium tests to be run with Internet Explorer. ↵Julien Phalip
Note that some tweaks had to be made, in particular as IE7 has limited capabilities regarding CSS selectors. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-04Made the Selenium tests for the admin horizontal/vertical filter widgets a ↵Julien Phalip
bit more thorough. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-04Added more thorough Selenium tests for the admin horizontal/vertical filter ↵Julien Phalip
widgets. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-23Added some Selenium tests for the admin's filter_horizontal and ↵Julien Phalip
filter_vertical widgets. Ref #13614, #15220. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-22Enabled the admin selenium tests to run on Chrome.Julien Phalip
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-31Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and ↵Carl Meyer
converted Django tests to use them where appropriate. Thanks Greg Müllegger. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22Fixed #2879 -- Added support for the integration with Selenium and other ↵Julien Phalip
in-browser testing frameworks. Also added the first Selenium tests for `contrib.admin`. Many thanks to everyone for their contributions and feedback: Mikeal Rogers, Dirk Datzert, mir, Simon G., Almad, Russell Keith-Magee, Denis Golomazov, devin, robertrv, andrewbadr, Idan Gazit, voidspace, Tom Christie, hjwp2, Adam Nelson, Jannis Leidel, Anssi Kääriäinen, Preston Holmes, Bruno Renié and Jacob Kaplan-Moss. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-20Fixed #12073 -- Made `AdminDateWidget` and `AdminTimeWidget` consider ↵Julien Phalip
user-supplied `attrs`. Thanks to elliss for the report and to koenb for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert much of the regression tests to use absolute imports. There's still ↵Alex Gaynor
work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-01Fixed #16542 -- Made Raw ID form widgets shipped with the admin app render ↵Ramiro Morales
the related object lookup tool only when the related model is effectively registered with the AdminSite. Also, converted these widgets to reverse named URLs instead of hard-coded '../../...'-style links, refs #15294. Thanks Florian Apolloner for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-30Fixed #16050 -- BACKWARDS-INCOMPATIBLE CHANGE: Moved static files of the ↵Jannis Leidel
admin to conventional file system location. This also removes the need for ADMIN_MEDIA_PREFIX and replaces it with the convention to find admin's static files at STATIC_URL + 'admin/'. Thanks to Jacob for the review and general help. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-06Added missing future imports missed in r16167.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-06Make use of new translation and settings context manager in the tests.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #15673 -- Allow limit_choices_to to use a tuple for __in filters. ↵Jannis Leidel
Thanks, EnTeQuAk. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-05Modified wrong expected ClearableFileInput rendering output in a couple of ↵Ramiro Morales
additional tests after fix introduced in [15426]. Refs #14984. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Modified a few tests methods to make sure no leaks of activated locale or ↵Ramiro Morales
USE_I10N setting value happen between tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Removed all usages of deprecated TestCase methods (self.fail*). This ↵Alex Gaynor
removed most of the Warnings emitted (with -Wall) during the test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-22Fixed #14424 -- corrected a NameError when instantiating a ↵Alex Gaynor
RelatedFieldWidgetWrapper. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15Fixed #14454 -- converted admin_widgets tests from doctests to unittests. ↵Alex Gaynor
We have always been at war with doctests. Thanks to prestontimmons for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft ↵Russell Keith-Magee
patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-11Fixed #13149 -- The admin `ForeignKeyRawIdWidget` now properly handles ↵Justin Bronn
non-integer values. Thanks, Chris Adams. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13751 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-02Fixed #11465: Ensure nonexistent pks enterd in an admin raw id field do notKaren Tracey
cause a server error. Thanks for report and initial patch sacre@wp.pl. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-13Fixed #12378 -- Removed some tests made redundant by feature deprecation. ↵Russell Keith-Magee
Thanks to jcd for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-30Fixed #12444 - Date based widgets now correctly handle input values when ↵Jannis Leidel
using locale-aware formatting. Also fixes #7656. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-23Fixed #11532 -- Corrected the link used for edit_inline foreign keys in ↵Russell Keith-Magee
admin when the admin is deployed using the old style admin.root approach. Thanks to JP for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-08Fixed #10059: `ModelAdmin.formfield_for_dbfield` now handles custom `Field` ↵Jacob Kaplan-Moss
subclasses. Thanks, Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-30Fixed #10537: Fixed the foreign key add-another link in list_editable. ↵Jacob Kaplan-Moss
Thanks, Alex and jezdez. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-16Changed "date" column to "start_date"--Oracle won't name columns with ↵Matt Boersma
reserved keywords. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-16Cleaned up and refactored `ModelAdmin.formfield_for_dbfield`:Jacob Kaplan-Moss
* The new method uses an admin configuration option (`formfield_overrides`); this makes custom admin widgets especially easy. * Refactored what was left of `formfield_for_dbfield` into a handful of smaller methods so that it's easier to hook in and return custom fields where needed. * These `formfield_for_*` methods now pass around `request` so that you can easily modify fields based on request (as in #3987). Fixes #8306, #3987, #9148. Thanks to James Bennet for the original patch; Alex Gaynor and Brian Rosner also contributed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9760 bcc190cf-cafb-0310-a4f2-bffc1f526a37