Skip to content
Permalink
Browse files

Fix windows test (baskslashes in path)

  • Loading branch information
elpaso committed Jan 21, 2020
1 parent 9781c4a commit 399637b2f0af3d7ff40292cddcd42029f538a499
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/python/test_qgspathresolver.py
@@ -150,11 +150,11 @@ def testRelativeProject(self):
curdir = os.getcwd()
os.chdir(os.path.join(TEST_DATA_DIR, 'qgis_server'))
resolver = QgsPathResolver('./test_project.qgs')
self.assertEqual(resolver.readPath('./testlayer.shp'), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp'))
self.assertEqual(resolver.readPath('testlayer.shp'), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp'))
self.assertEqual(resolver.readPath('./testlayer.shp').replace("\\", "/"), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp').replace("\\", "/"))
self.assertEqual(resolver.readPath('testlayer.shp').replace("\\", "/"), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp').replace("\\", "/"))
resolver = QgsPathResolver('test_project.qgs')
self.assertEqual(resolver.readPath('./testlayer.shp'), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp'))
self.assertEqual(resolver.readPath('testlayer.shp'), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp'))
self.assertEqual(resolver.readPath('./testlayer.shp').replace("\\", "/"), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp').replace("\\", "/"))
self.assertEqual(resolver.readPath('testlayer.shp').replace("\\", "/"), os.path.join(TEST_DATA_DIR, 'qgis_server', 'testlayer.shp').replace("\\", "/"))
os.chdir(curdir)


0 comments on commit 399637b

Please sign in to comment.
You can’t perform that action at this time.