Remove polymorphic_dumpdata command and assorted scripts.
The polymorphic_dumpdata command carried a deprecation note for a long time now. The scripts for testing python versions are replaced by tox already.fix_request_path_info
parent
06ac5a4795
commit
e7a2340723
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
colordiff -u -w libraries-local/django-versions/django1.1/core/management/commands/dumpdata.py polymorphic/management/commands/polymorphic_dumpdata_11.py
|
|
||||||
|
|
||||||
colordiff -u -w libraries-local/django-versions/django1.2/core/management/commands/dumpdata.py polymorphic/management/commands/polymorphic_dumpdata_12.py
|
|
||||||
|
|
||||||
colordiff -u -w libraries-local/django-versions/django1.3/core/management/commands/dumpdata.py polymorphic/management/commands/polymorphic_dumpdata_13.py
|
|
||||||
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
"""
|
|
||||||
polymorphic_dumpdata has been disabled since it's no longer needed
|
|
||||||
(this is now handled by polymorphic.base.PolymorphicModelBase).
|
|
||||||
"""
|
|
||||||
|
|
||||||
assert False, """
|
|
||||||
ERROR: The management command polymorphic_dumpdata is no longer supported or needed.
|
|
||||||
Please use the standard Django dumpdata management command instead!
|
|
||||||
"""
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# this test script runs "./manage.py test" for
|
|
||||||
# all supported python versions (2.4, 2.5, 2.6)
|
|
||||||
# and all supported Django versions (1.1, 1.2, 1.3)
|
|
||||||
|
|
||||||
# it needs symbolic links named "django1.1" and "django1.2" etc. in:
|
|
||||||
# libraries-local/django-versions
|
|
||||||
# which point to the respective django versions
|
|
||||||
|
|
||||||
cd libraries-local
|
|
||||||
rm -f django-orig
|
|
||||||
if test -e django ; then mv django django-orig ; fi
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
function restore_django {
|
|
||||||
echo "### restoring original libraries-local/django"
|
|
||||||
cd libraries-local
|
|
||||||
if test -e django-orig ; then mv django-orig django ; fi
|
|
||||||
cd .
|
|
||||||
}
|
|
||||||
|
|
||||||
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 polymorphic; then
|
|
||||||
echo ERROR
|
|
||||||
restore_django
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
if ! ./test_dumpdata $1 ; then
|
|
||||||
echo ERROR
|
|
||||||
restore_django
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
echo "### python $1 is not installed!"
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_all_python_versions {
|
|
||||||
test_python_version 2.4 $1
|
|
||||||
test_python_version 2.5 $1
|
|
||||||
test_python_version 2.6 $1
|
|
||||||
}
|
|
||||||
|
|
||||||
function test_django_version {
|
|
||||||
if ! test -e libraries-local/django-versions/django$1 ; then
|
|
||||||
echo
|
|
||||||
echo "### django $1 is not installed!"
|
|
||||||
echo
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
cd libraries-local
|
|
||||||
rm -f django
|
|
||||||
ln -s django-versions/django$1 django
|
|
||||||
cd ..
|
|
||||||
test_all_python_versions $1
|
|
||||||
}
|
|
||||||
|
|
||||||
test_django_version 1.1
|
|
||||||
test_django_version 1.2
|
|
||||||
test_django_version 1.3
|
|
||||||
|
|
||||||
restore_django
|
|
||||||
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
rm -f /var/tmp/django-polymorphic-test-db.sqlite3
|
|
||||||
rm -f /ram/django-polymorphic-test-db.sqlite3
|
|
||||||
|
|
||||||
TMPFILE=/tmp/django-polymorphic-test.dump
|
|
||||||
|
|
||||||
PYCMD="python$1"
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "#####################################################################"
|
|
||||||
echo "### Testing dumpdata"
|
|
||||||
echo
|
|
||||||
|
|
||||||
$PYCMD ./manage.py syncdb
|
|
||||||
$PYCMD ./manage.py polymorphic_create_test_data
|
|
||||||
|
|
||||||
$PYCMD ./manage.py dumpdata --indent=4 pexp >$TMPFILE
|
|
||||||
|
|
||||||
if ! diff -w $TMPFILE pexp/dumpdata_test_correct_output.txt ; then
|
|
||||||
echo "#####################################################################"
|
|
||||||
echo "ERROR: test_dumpdata failed!"
|
|
||||||
exit 10
|
|
||||||
fi
|
|
||||||
echo "#####################################################################"
|
|
||||||
echo 'SUCCESS!'
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue