Skip to content

Commit

Permalink
Copy test tree to avoid gpkg changes in git
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 17, 2020
1 parent 8aec98a commit 7f00e75
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/src/python/test_qgsserver_landingpage.py
Expand Up @@ -54,8 +54,13 @@ class QgsServerLandingPageTest(QgsServerAPITestBase):
@classmethod
def setUpClass(cls):
super().setUpClass()
directories = [os.path.join(unitTestDataPath('qgis_server'), 'landingpage', 'projects')]
directories.append(os.path.join(unitTestDataPath('qgis_server'), 'landingpage', 'projects2'))

cls.temp_dir = QtCore.QTemporaryDir()

temp_dir = cls.temp_dir.path()
shutil.copytree(os.path.join(unitTestDataPath('qgis_server'), 'landingpage'), os.path.join(temp_dir, 'landingpage'))

directories = [os.path.join(temp_dir, 'landingpage', 'projects'), os.path.join(temp_dir, 'landingpage', 'projects2')]
os.environ['QGIS_SERVER_PROJECTS_DIRECTORIES'] = '||'.join(directories)

if not os.environ.get('TRAVIS', False):
Expand Down

0 comments on commit 7f00e75

Please sign in to comment.