jan: thuban/Extensions/svgexport/test test_svgmapwriter.py, 1.10, 1.11
cvs@intevation.de
cvs at intevation.de
Tue Dec 7 15:00:14 CET 2004
Author: jan
Update of /thubanrepository/thuban/Extensions/svgexport/test
In directory doto:/tmp/cvs-serv23820
Modified Files:
test_svgmapwriter.py
Log Message:
Reverting part of a (non-)fix to renable that the tests are always
executed.
Index: test_svgmapwriter.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/test/test_svgmapwriter.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- test_svgmapwriter.py 7 Dec 2004 11:19:38 -0000 1.10
+++ test_svgmapwriter.py 7 Dec 2004 14:00:12 -0000 1.11
@@ -19,20 +19,17 @@
import StringIO
import unittest
-# If run directly as a script, add Thuban's test directory to the path
-# as well as the extensions own directory (i.e. parent).
+# If run directly as a script, add Thuban's test directory to the path.
# Otherwise we assume that the importing code has already done it.
if __name__ == "__main__":
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),
"..", "..", "..", "test"))
- sys.path.append(os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])),
- ".."))
from mockgeo import SimpleShapeStore
import support
support.initthuban()
# Now import needed SVG stuff
-from svgmapwriter import VirtualDC, \
+from Extensions.svgexport.svgmapwriter import VirtualDC, \
Pen, Brush, SOLID, Point, Font, TRANSPARENT_PEN, TRANSPARENT_BRUSH, \
SVGRenderer, SVGMapWriterError
# Color related classes from the model of thuban
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)