diff options
author | Nathan Yergler <nathan@yergler.net> | 2006-02-28 02:20:01 +0000 |
---|---|---|
committer | Nathan Yergler <nathan@yergler.net> | 2006-02-28 02:20:01 +0000 |
commit | 2b7beb291e1556b92f31600ebeb93675bbb9e454 (patch) | |
tree | 1a5e95d40e061fcbd6f713a7e37a1b4075ffe8bc | |
parent | a3e908ae515bf5138a4d35c510297f2df8c60fb3 (diff) | |
download | zope-i18nmessageid-2b7beb291e1556b92f31600ebeb93675bbb9e454.tar.gz |
Fixed up new project to perform tests as an independent project.
-rw-r--r-- | src/zope/__init__.py | 1 | ||||
-rw-r--r-- | test.py | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/src/zope/__init__.py b/src/zope/__init__.py new file mode 100644 index 0000000..792d600 --- /dev/null +++ b/src/zope/__init__.py @@ -0,0 +1 @@ +# @@ -0,0 +1,36 @@ +#!/usr/bin/env python +############################################################################## +# +# Copyright (c) 2004 Zope Corporation and Contributors. +# All Rights Reserved. +# +# This software is subject to the provisions of the Zope Public License, +# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution. +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED +# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS +# FOR A PARTICULAR PURPOSE. +# +############################################################################## +"""Sample test script using zope.testing.testrunner + +see zope.testing testrunner.txt + +$Id$ +""" + +import os, sys + +src = os.path.join(os.path.split(sys.argv[0])[0], 'src') +sys.path.insert(0, src) # put at beginning to avoid one in site_packages + +from zope.testing import testrunner + +defaults = [ + '--path', src, + '--package', 'zope.i18nmessageid', + '--tests-pattern', '^tests$', + ] + +sys.exit(testrunner.run(defaults)) + |