django-easyfilters / docs / develop.rst


Python 2.6 is required for running the test suites and demo app.

First, ensure the directory containing the django_easyfilters directory is on your Python path (virtualenv recommended). Django is a required dependency.


To run the test suite, do:

./ test django_easyfilters

To run it on all supported platforms, install tox and do:


Editing test fixtures

To edit the test fixtures, you can edit the fixtures in django_easyfilters/tests/fixtures/, or you can do it via an admin interface:

First create an empty db:

rm tests.db
./ syncdb

Then load with current test fixture:

./ loaddata django_easyfilters_tests

Then edit in admin at http://localhost:8000/admin/

./ runserver

Or from a Python shell.

Then dump data:

./ dumpdata tests --format=json --indent=2 > django_easyfilters/tests/fixtures/django_easyfilters_tests.json


Once the test fixtures have been loaded into the DB, and the devserver is running, as above, you can view a test page at http://localhost:8000/books/