4
Development environments can be set of using the setup.py files in the
5
projects you wish to work on. The easiest approach is to use python-virtualenv.
6
Since most projects require the ci-utils project, that should almost always
9
# setup the ppa-assigner project
11
. /tmp/venv/bin/activate
12
./ci-utils/setup.py develop
13
./ppa-assigner/setup.py develop
15
# setup for sqlite3 (easiest way)
16
cp ppa-assigner/local_settings.py.example ppa-assigner/local_settings.py
19
sudo ./ppa-assigner/setup.py create_db
21
Unit-testing can be done with::
23
./ppa-assigner/manage.py test # this tests everything (including django)
24
./ppa-assigner/manage.py test ppa_assigner # just test the project
25
./ppa-assigner/manage.py test ppa_assigner.TestApi #test one class
26
./ppa-assigner/manage.py test ppa_assigner.TestApi.testFree # test one method
32
Each service should include a juju-deployer config under the juju-deployer