Skip to content

Commit

Permalink
Added test subfolder.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericflo committed May 26, 2008
1 parent 02f3781 commit a9296f3
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 0 deletions.
29 changes: 29 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,29 @@
Copyright (c) 2008, Eric Florenzano
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 list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of the author nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

17 changes: 17 additions & 0 deletions tests/.svn/all-wcprops
@@ -0,0 +1,17 @@
K 25
svn:wc:ra_dav:version-url
V 28
/svn/!svn/ver/88/trunk/tests
END
settings.py
K 25
svn:wc:ra_dav:version-url
V 40
/svn/!svn/ver/88/trunk/tests/settings.py
END
runtests.py
K 25
svn:wc:ra_dav:version-url
V 40
/svn/!svn/ver/18/trunk/tests/runtests.py
END
52 changes: 52 additions & 0 deletions tests/.svn/entries
@@ -0,0 +1,52 @@
8

dir
106
https://django-threadedcomments.googlecode.com/svn/trunk/tests
https://django-threadedcomments.googlecode.com/svn



2008-03-08T00:25:27.561203Z
88
floguy


svn:special svn:externals svn:needs-lock











60388069-7741-0410-adde-d57be00c0a97

settings.py
file




2008-05-15T00:03:19.000000Z
5c37c6d53bcd4a612fc5745ff30c0191
2008-03-08T00:25:27.561203Z
88
floguy

runtests.py
file




2008-05-15T00:03:19.000000Z
b7c39ff05b83afa6fc4d389a9853eb02
2008-01-11T05:24:43.667517Z
18
floguy

1 change: 1 addition & 0 deletions tests/.svn/format
@@ -0,0 +1 @@
8
16 changes: 16 additions & 0 deletions tests/.svn/text-base/runtests.py.svn-base
@@ -0,0 +1,16 @@
import sys
sys.path.append('..')

import os
# Make a backup of DJANGO_SETTINGS_MODULE environment variable to restore later.
backup = os.environ.get('DJANGO_SETTINGS_MODULE', '')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

from django.test.simple import run_tests

if __name__ == "__main__":
failures = run_tests(['threadedcomments',], verbosity=9)
if failures:
sys.exit(failures)
# Reset the DJANGO_SETTINGS_MODULE to what it was before running tests.
os.environ['DJANGO_SETTINGS_MODULE'] = backup
20 changes: 20 additions & 0 deletions tests/.svn/text-base/settings.py.svn-base
@@ -0,0 +1,20 @@
import os

DEFAULT_CHARSET = 'utf-8'

DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = os.path.join(os.path.dirname(__file__), 'threadedcomments_test.db')

ROOT_URLCONF = 'threadedcomments.urls'

GRAVATAR_DEFAULT_IMG = 'http://site.gravatar.com/images/common/top/logo.gif'

SITE_ID = 1

INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sites',
'threadedcomments',
)
16 changes: 16 additions & 0 deletions tests/runtests.py
@@ -0,0 +1,16 @@
import sys
sys.path.append('..')

import os
# Make a backup of DJANGO_SETTINGS_MODULE environment variable to restore later.
backup = os.environ.get('DJANGO_SETTINGS_MODULE', '')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

from django.test.simple import run_tests

if __name__ == "__main__":
failures = run_tests(['oembed',], verbosity=9)
if failures:
sys.exit(failures)
# Reset the DJANGO_SETTINGS_MODULE to what it was before running tests.
os.environ['DJANGO_SETTINGS_MODULE'] = backup
6 changes: 6 additions & 0 deletions tests/settings.py
@@ -0,0 +1,6 @@
DATABASE_ENGINE = 'sqlite3'
ROOT_URLCONF = ''
SITE_ID = 1
INSTALLED_APPS = (
'oembed',
)

0 comments on commit a9296f3

Please sign in to comment.