-
Notifications
You must be signed in to change notification settings - Fork 16
Testing HOWTO
simone edited this page Jun 30, 2012
·
6 revisions
export CKHOME=/your/composite/project/home
sudo apt-get install python-virtualenv subversion
sudo pip install virtualenvwrapper
mkvirtualenv compositekey
mkdir -p $CKHOME
cd $CKHOME
svn co http://code.djangoproject.com/svn/django/tags/releases/1.4/ django14
pip install -e ./django14
git clone git://github.com/simone/django-compositekey.git
pip install -e django-compositekey
cd django-compositekey/
svn co http://code.djangoproject.com/svn/django/tags/releases/1.4/tests djangotests/
./cruntests.py --settings=test_sqlite
./cruntests.py --settings=test_pg
./cruntests.py --settings=test_mysql
./cruntests.py --settings=test_oracle
[postgres, mysql, oracle required the databases as configurated in the test_*.py configurations]
Ticket https://code.djangoproject.com/ticket/16317 patching/fixing a self relation "natural keys" issue
cd django14/
patch -p0 < ../django-compositekey/patchs/16317_get_by_natural_key.patch
cd ..
[client]
default-character-set = utf8
[mysqld]
character-set-server=utf8
collation-server=utf8_unicode_ci
init_connect='set collation_connection = utf8_unicode_ci;'