Post archive

The value of conventions, aka testmaker for template tags.

2008 November 27

A couple posts ago, I talked about how we should have conventions for the names that we use in Django Template Blocks. Today I will be talking about the value that is gained from this kind of structure.

Use Cases

Template Tags ...

Encouraging Testing in Django

2008 November 13

I was having a conversation with Jacob tonight about testing in Django. He has shot down testmaker for being too specific for Django core, which I almost agree with, given my grandiose plans for it before the month is out ...

Practical Django Testing Examples: Views

2008 November 11

This is the fourth in a series of Django testing posts. Check out the others in my Testing series if you want to read more. Today is the start of a sub-series, which is practical examples. This series will be going through each of the different kinds of ...

Announcing Django Crawler and django-test-utils

2008 November 10

Today I'm going to be releasing a new project, called django-test-utils. It's rather empty at the moment, but it does have one cool feature. That is my [Django Crawler](http://github.com/ericholscher/django-test-utils/tree/master/test_utils/management/commands/crawlurls.py ...

Introduction to Python/Django tests: Fixtures

2008 November 05

In the first two posts of this series, we talked about how to get the basic infrastructure for your tests up and running. You should have a file with doc tests and one with unit tests. They should be linked into your django project with an `init.py ...

Introduction to Python/Django testing: Basic Unit Tests

2008 November 04

Last post we talked about how to set up and use doc tests inside of Django. Today, in the second post of the series, we'll be talking about how to use the other testing framework that comes with Python, unittest. unittest is a xUnit type of testing system (JUnit ...

Introduction to Python/Django testing: Basic Doctests

2008 November 02

This is the first in a series of blog posts and screencasts that will walk you through how to test your Django application. These posts will focus more on how to get things done in Django, but note that a lot of the content is applicable to pure python as ...

Using Mock objects in Django for testing the current date

2008 August 14

Today I ran into a fun problem when writing template tags at work. (I'll write another post later on the fun-ness that is testing of template tags :) In ellington we have some templatetags that test for the current time of day. ifmorning, ifnight and so on. These template tags ...

Testmaker .002 (Even easier automated testing in Django)

2008 July 26

Okay, Well I have been hacking away at django-testmaker for the last couple of days based on some ideas from the community. It has gotten a lot better, so here is another blog post showing what's new.

First let me just say how awesome the Django community is, and ...

Automating tests in Django

2008 July 23

Updated

At work lately we've been writing a bunch of tests for all of the work we've been doing. This is generally a good thing (tm). I was getting tired of manually having to write all of the code to test the views ...