Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!


Project description

-*- rst -*-

Fixtures for Django. See <> for more
details about what we mean by "fixtures".


All files are Copyright (C) 2012 Canonical Ltd.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <>.


This is how you do it::

class MyTest(TestCase):

def test_foo(self):
django_url = self.useFixture(DjangoFixture()).base_url

Known problems and future work

* The port of the Django service is constant, so it is difficult to use the
fixture in parallel.

* Very minimal test coverage. This was originally written to test something

* pkgme-service_ has ``DjangoSettings``, ``DjangoDatabase``, and
``CeleryFixture``. They are all probably useful and appropriate for here.

Getting help

If you'd like help with djangofixture, you can find the developers on
Freenode, hanging out in #pkgme. Alternatively, join the mailing list and
send an email to it.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for djangofixture, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size djangofixture-0.2.tar.gz (13.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page