Blog

Showing 1 to 5 of 6 blog posts tagged with "testing".

February 5, 2014
by Alex Lemann
0 comments

Caktus Completes RapidSMS Community Coordinator Development for UNICEF

Colin Copeland, Managing Member at Caktus, has wrapped up work, supported by UNICEF, as the Community Coordinator for the open source RapidSMS project. RapidSMS is a text messaging application development library built on top of the Django web framework. It creates a SMS provider agnostic way of sending and receiving ...

Continue reading →

October 2, 2013
by Mark Lavin
0 comments

Skipping Test DB Creation

We are always looking for ways to make our tests run faster. That means writing tests which don't preform I/O (DB reads/writes, disk reads/writes) when possible. Django has a collection of TestCase subclasses for different use cases. The common TestCase handles the fixture loading and the ...

Continue reading →

July 17, 2013
by Mark Lavin
0 comments

Factory Boy as an Alternative to Django Testing Fixtures

When testing a Django application you often need to populate the test database with some sample data. The standard Django TestCase has support for fixture loading but there are a number of problems with using fixtures:

  • First, they must be updated each time your schema changes.
  • Second, they force you ...

Continue reading →

June 26, 2013
by Mark Lavin
0 comments

MEDIA_ROOT and Django Tests

If you’ve ever written a test for a view or model with associated uploaded files you might have noticed a small problem with those files hanging around after the tests are complete. Since version 1.3, Django won’t delete the files associated with your model instances when they ...

Continue reading →

September 24, 2010
by Tobias McNulty
0 comments

Simplifying the Testing of Unmanaged Database Models in Django

Sometimes, when building a web application in Django, one needs to connect to a legacy database whose tables already exist. To support this use case, Django has the concept of "unmanaged models," which let you connect the Django ORM to tables that it assumes to exist (and not attempt to ...

Continue reading →

Newer | Older