This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from yourapp.settings.common import * | |
ROOT_URLCONF = 'yourapp.settings.test.urls' | |
DATABASE_ENGINE = 'sqlite3' | |
DATABASE_NAME = ':memory:' | |
INSTALLED_APPS += ('django_nose', ) | |
TEST_RUNNER = 'django_nose.run_tests' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Copyright (c) 2008-2009, Nathan Borror | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, | |
are permitted provided that the following conditions are met: | |
Redistributions of source code must retain the above copyright notice, this list | |
of conditions and the following disclaimer. | |
Redistributions in binary form must reproduce the above copyright notice, this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestBasecamp(Basecamp): | |
"""Subclass of Basecamp which records network transactions. | |
Transactions are serialized to JSON on disk and used in lieu | |
of network usage on second and subsequent requests. | |
Basecamp class found here: http://pypi.python.org/pypi/BasecampWrapper/0.1 | |
""" | |
def __init__(self, baseURL, username, password): | |
self.__test_responses = { 'GET': {}, 'POST': {} } | |
super(TestBasecamp, self).__init__(baseURL, username, password) | |
NewerOlder