joey: thuban/Extensions/wms/test test_parser.py,1.1,1.2

cvs@intevation.de cvs at intevation.de
Fri Mar 19 20:43:42 CET 2004


Author: joey

Update of /thubanrepository/thuban/Extensions/wms/test
In directory doto:/tmp/cvs-serv27240

Modified Files:
	test_parser.py 
Log Message:
Moved path detection and adding into a module of its own, adjustpath,
which exports thubandir as main Thuban directory.

Index: test_parser.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/test/test_parser.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test_parser.py	18 Mar 2004 17:18:53 -0000	1.1
+++ test_parser.py	19 Mar 2004 19:43:40 -0000	1.2
@@ -30,16 +30,7 @@
 import os
 import unittest
 
-from sys import path
-
-# Add the main Thuban directory so the path so that all modules are
-# accessible as expected
-#
-if os.path.dirname (__file__) == "" or os.path.dirname (__file__) == ".":
-    path.insert (0, os.path.abspath ("../../../"))
-else:
-    path.insert (0, os.path.abspath (os.path.dirname(__file__) + "/../../.."))
-    
+from adjustpath import thubandir
 
 from Extensions.wms.parser import WMSCapabilitiesParser
 
@@ -247,6 +238,7 @@
         bbox = {'minx': "3.42742e+06", 'miny': "5.78918e+06",
                 'maxx': "3.44380e+06", 'maxy': "5.80037e+06"}
         self.compareDicts (self.getLayerBBox('gewaesserpolyl', 31494),bbox)
+
 
     def test_queryable (self):
         """





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)