nhueffme: thuban/Extensions/ogr/test test_OGRShapestore.py, 1.4, 1.5

cvs@intevation.de cvs at intevation.de
Tue Feb 8 10:52:58 CET 2005


Author: nhueffme

Update of /thubanrepository/thuban/Extensions/ogr/test
In directory doto:/tmp/cvs-serv26858/Extensions/ogr/test

Modified Files:
	test_OGRShapestore.py 
Log Message:
Changed the GUI. OGR support can now be accessed via the Map menu.
Removed some print commands.


Index: test_OGRShapestore.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/ogr/test/test_OGRShapestore.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- test_OGRShapestore.py	31 Jan 2005 09:18:27 -0000	1.4
+++ test_OGRShapestore.py	8 Feb 2005 09:52:56 -0000	1.5
@@ -52,15 +52,12 @@
         imported.
         """
         skip_if_no_ogr()
-        self.session = Session("Test Session")
         self.filename = os.path.join("..", "Data", "iceland","roads-line.shp")
-        self.store = OGRShapeStore(self.session, self.filename, "roads-line")
+        self.store = OGRShapeStore(self.filename, "roads-line")
 
     def tearDown(self):
         """Call self.session.Destroy() and reset self.session to None"""
-        self.session.Destroy()
-        self.session = None
-        self.store = None	
+        self.store = None
 
     def test_shape_type(self):
         """Test OGRShapeStore.ShapeType() with arc shapes"""
@@ -110,16 +107,13 @@
 class TestOGRTable(unittest.TestCase, support.FloatComparisonMixin):
 
     def setUp(self):
-        """Initialize self.session"""
-        self.session = Session("Test Session")
+        """Initialize"""
         self.filename = os.path.join("..","Data", "iceland","roads-line.shp")
-        self.store = OGRShapeStore(self.session, self.filename, "roads-line")
+        self.store = OGRShapeStore(self.filename, "roads-line")
         self.table = self.store.Table()
 
     def tearDown(self):
         """Call self.session.Destroy() and reset self.session to None"""
-        self.session.Destroy()
-        self.session = None
 
     def test_Dependencies(self):
         """Test dependencies, which is always ()"""





More information about the Thuban-devel mailing list

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