~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/testing/__init__.py

  • Committer: William Grant
  • Date: 2010-02-15 05:38:48 UTC
  • Revision ID: grantw@unimelb.edu.au-20100215053848-0yi3jmw8km2r8yth
Unbreak the test suite by providing FakeRequest.config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import datetime
2
2
 
 
3
from ivle.config import Config
3
4
from ivle.database import User
4
5
from ivle.dispatch.request import Request
5
6
 
38
39
 
39
40
        # We don't want DB access in tests (by default)
40
41
        self.store = None
 
42
        self.config = Config()
41
43
 
42
44
        # Default values for the output members
43
45
        self.status = Request.HTTP_OK