summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts/tests.py
AgeCommit message (Collapse)Author
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-21Fixed #15359 -- Ensure that the -h option is always honored by ↵Russell Keith-Magee
django-admin.py. Thanks to teubank for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15605 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-13Fixed #14130 -- Made manage.py error reporting more useful when the ↵Ramiro Morales
settings.py file triggers import errors (in new projects). Thanks Setok for the report, mk and steph for their work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-27Fixed #15112 -- Ensure that IPv6 addresses are correctly displayed in the ↵Russell Keith-Magee
admin. Thanks to oxy for the report, and Łukasz Rekucki for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-15Fixed #14928 -- Ensure that a fully qualified domain name can be used for ↵Russell Keith-Magee
runserver. Thanks to Karmel Allison for the report, Łukasz Rekucki for the patch, and claudep for the tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-08Ensure that a Popen object is closed promptly during the tests.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14853 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-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-08-21Fixed #14148 -- Ensure the admin_script tests always use an absolute path; ↵Russell Keith-Magee
PyPy (and sometimes CPython) return relative paths for __file__. Thanks to Alex Gaynor for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-20Fixed #13366 -- Corrected the field __setstate__ method to avoid a race ↵Russell Keith-Magee
condition when initially importing models. Thanks to Brett Hoerner for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-20Fixed #13382 -- Modified a message used for testing purposes to allow test ↵Russell Keith-Magee
passes under PyPy. Thanks to Alex Gaynor for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-14Fixed #13335: Adjusted the r12950 fix to properly handle import errors ↵Karen Tracey
resulting from nested calls to load_app. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-12Fixed #11696: Changed app loading code so that it does not swallow import ↵Karen Tracey
errors that used to be (prior to r10088) raised. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12950 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-23Fixed #13173: Made the admin_scripts tests pass when the running python ↵Karen Tracey
executable has a space in its pathname. Thanks gabrielhurley. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-29Fixed a few Python 2.3 incompatibilities that were causing test failures.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-12Fixed #9751: admin scripts now calculate the project directory correctly ↵Jacob Kaplan-Moss
when the settings module is a directory with an ``__init__.py``. Thanks to Eric Holscher. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10751 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-04Fixed #9293: Corrected expected test output for the admin_scripts tests, ↵Russell Keith-Magee
following the changes to --verbosity in 9110. Thanks to Alex for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #8268: Modified admin scripts tests to use JYTHONPATH when ↵Russell Keith-Magee
appropriate. Thanks to leosoto for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Fixed #8235: use subprocess instead of popen3 so that Python 2.6 is happy. ↵Jacob Kaplan-Moss
Thanks, Karen Tracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #5943 -- Modified django-admin to behave like manage.py if settings ↵Russell Keith-Magee
are provided, either as --settings or DJANGO_SETTINGS_MODULE. Thanks to Joseph Kocherhans and Todd O'Bryan for their work on this ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8047: property detect an external database backend and set sys.path ↵Jacob Kaplan-Moss
accordingly. Patch from Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8120, #7997 -- Cleaned up the help messages displayed by django-admin ↵Russell Keith-Magee
so that the lax options aren't repeated, and the lax options are displayed when no subcommand is provided. Thanks to Scott Moonen <smoonen@andstuff.org> and trevor for the respective reports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #5825 -- Modified the custom command loader to allow for explicit ↵Russell Keith-Magee
specification of the project name, even if the project directory isn't in the python path. This brings custom command loading into alignment with application loading. Thanks to jdetaeye@frepple.com for the original report, and to abozanich for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-31Corrected a typo in [8158]. Thanks to Matthias Kestenholz <mk@spinlock.ch> ↵Russell Keith-Magee
for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-31Refs #8047 -- Removed some CPython specific parts of the admin scripts tests.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8158 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-30Fixed #8029 -- Modified admin_scripts test to use the PYTHONPATH from the ↵Russell Keith-Magee
environment where the test is executed. Thanks to Ramiro and Alex Gaynor for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27Fixed the admin_scripts tests to check for the right output with Python 2.4.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23Fixed #7906 -- Modified admin_scripts regression test to use the same python ↵Russell Keith-Magee
executable that is running the test suite, rather than using 'python' on the path. Thanks to Chris Hasenpflug for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22Fixed a bunch of Python 2.3 test failures.Malcolm Tredinnick
All remaining buildbot failures on 2.3 are not due to the test suite, as far as I can work out. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-17Refs #7745 -- Modified use of assertTrue to failUnless, because assertTrue ↵Russell Keith-Magee
isn't available in Python 2.3. Thanks to Karen Tracey for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7941 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-14Removed a Python2.3 incompatible generator construct. Thanks to Karen Tracey ↵Russell Keith-Magee
for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-13Fixed #7728 -- Modified the output check in the admin script tests. Checking ↵Russell Keith-Magee
for pyc is a CPython-specific check, and it breaks CPython if pyc files aren't generated (due to permission problems, etc). Thanks to Maciej Fijalkowski (fijal) for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-11Fixed #6017 -- Modified the Lax parser to allow --settings and the other ↵Russell Keith-Magee
core management arguments to appear anywhere in the argument list. Thanks to Todd O'Bryan for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-11Fixed #7715 -- Modified the admin_scripts tests to do an app level import, ↵Russell Keith-Magee
rather than a project level import. This removes the potential for conflict between the admin script tests and the settings for the test suite itself. Thanks to Malcolm Tredinnick for his help hunting this one down. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-10Corrected a bug in [7876] picked up by the buildbot: depending on the order ↵Russell Keith-Magee
in which tests are run, some tests would fail because of a dependency on the current working directory. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-10Refs #5943, #6107 -- Added framework and tests to check for the correct ↵Russell Keith-Magee
operation of django-admin and manage.py. Thanks for Simon Willison and Karen Tracey for their contributions and assistance testing this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7876 bcc190cf-cafb-0310-a4f2-bffc1f526a37