コード例 #1
0
 def tearDownClass(cls):
     gisenv = SimpleModule('g.gisenv', get='GISDBASE')
     cls.runModule(gisenv, expecting_stdout=True)
     gisdbase = gisenv.outputs.stdout.strip()
     gisenv = SimpleModule('g.gisenv', get='LOCATION_NAME')
     cls.runModule(gisenv, expecting_stdout=True)
     location = gisenv.outputs.stdout.strip()
     cls.runModule("g.mapset", mapset=cls.old_mapset)
     for mapset_name in cls.mapsets_to_remove:
         mapset_path = os.path.join(gisdbase, location, mapset_name)
         silent_rmtree(mapset_path)
コード例 #2
0
 def tearDownClass(cls):
     gisenv = SimpleModule('g.gisenv', get='GISDBASE')
     cls.runModule(gisenv, expecting_stdout=True)
     gisdbase = gisenv.outputs.stdout.strip()
     gisenv = SimpleModule('g.gisenv', get='LOCATION_NAME')
     cls.runModule(gisenv, expecting_stdout=True)
     location = gisenv.outputs.stdout.strip()
     cls.runModule("g.mapset", mapset=cls.old_mapset)
     for mapset_name in cls.mapsets_to_remove:
         mapset_path = os.path.join(gisdbase, location, mapset_name)
         silent_rmtree(mapset_path)
コード例 #3
0
 def tearDownClass(cls):
     """Remove temporary data"""
     gisenv = SimpleModule("g.gisenv", get="GISDBASE")
     cls.runModule(gisenv, expecting_stdout=True)
     gisdbase = gisenv.outputs.stdout.strip()
     gisenv = SimpleModule("g.gisenv", get="LOCATION_NAME")
     cls.runModule(gisenv, expecting_stdout=True)
     location = gisenv.outputs.stdout.strip()
     cls.runModule("g.remove", flags="f", type="raster", name=(cls.temp1,))
     cls.runModule("g.mapset", mapset=cls.old_mapset)
     for mapset_name in cls.mapsets_to_remove:
         mapset_path = os.path.join(gisdbase, location, mapset_name)
         silent_rmtree(mapset_path)
コード例 #4
0
ファイル: test_addons_modules.py プロジェクト: mlennert/grass
 def tearDown(self):
     """Remove created files"""
     silent_rmtree(self.install_prefix)
コード例 #5
0
ファイル: test_addons_modules.py プロジェクト: rkrug/grass-ci
 def tearDown(self):
     """Remove created files"""
     silent_rmtree(self.install_prefix)