polymorphic_dumpdata management command functionality removed;

the regular Django dumpdata command now automatically works correctly
for polymorphic models and all Django versions
(this is handled by PolymorphicModelBase now).
Testing for dumpdata has been added.
This commit is contained in:
Bert Constantin
2010-10-18 17:39:06 +02:00
parent f05b854a54
commit a87481b8b5
12 changed files with 101 additions and 296 deletions
+16 -5
View File
@@ -21,8 +21,19 @@ function restore_django {
}
function test_python_version {
echo ; echo ; echo
echo "#########################################################################"
echo "### Testing Python $1, Django $2"
echo "#########################################################################"
echo
if which python$1 ; then
if ! python$1 manage.py test ; then
if ! python$1 manage.py test polymorphic; then
echo ERROR
restore_django
exit 10
fi
if ! ./test_dumpdata $1 ; then
echo ERROR
restore_django
exit 10
@@ -35,9 +46,9 @@ function test_python_version {
}
function test_all_python_versions {
test_python_version 2.4
test_python_version 2.5
test_python_version 2.6
test_python_version 2.4 $1
test_python_version 2.5 $1
test_python_version 2.6 $1
}
function test_django_version {
@@ -51,7 +62,7 @@ function test_django_version {
rm -f django
ln -s django-versions/django$1 django
cd ..
test_all_python_versions
test_all_python_versions $1
}
test_django_version 1.1