Commit 9d24e8f0 authored by Shane Hathaway's avatar Shane Hathaway

Enabled tests to run from testrunner.

parent bb0c2d11
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
"""Document Template Tests """Document Template Tests
""" """
__rcs_id__='$Id: testDTML.py,v 1.4 2001/04/28 22:36:45 chrism Exp $' __rcs_id__='$Id: testDTML.py,v 1.5 2001/05/23 18:03:37 shane Exp $'
__version__='$Revision: 1.4 $'[11:-2] __version__='$Revision: 1.5 $'[11:-2]
import sys, os import sys, os
import unittest import unittest
...@@ -95,8 +95,9 @@ if __name__=='__main__': ...@@ -95,8 +95,9 @@ if __name__=='__main__':
sys.path.append(os.path.join(os.pardir, os.pardir)) sys.path.append(os.path.join(os.pardir, os.pardir))
here = os.curdir here = os.curdir
else: else:
from DocumentTemplate import tests
from App.Common import package_home from App.Common import package_home
here = package_home(globals()) here = package_home(tests.__dict__)
def read_file(name): def read_file(name):
f = open(os.path.join(here, name), 'rb') f = open(os.path.join(here, name), 'rb')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment