Permalink
Browse files

Added test subfolder.

  • Loading branch information...
1 parent 02f3781 commit a9296f3bcd4da99e3e3589afe9209860ecb07458 @ericflo ericflo committed May 26, 2008
View
@@ -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.
+
@@ -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
View
@@ -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
+
View
@@ -0,0 +1 @@
+8
@@ -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
@@ -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',
+)
View
@@ -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
View
@@ -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.