Skip to content

Commit f76bbeb

Browse files
committedJan 6, 2016
More debugging for server access control tests
1 parent 3cca91a commit f76bbeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎tests/src/python/test_qgsserver_accesscontrol.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# This will get replaced with a git SHA1 when you do a git archive
1313
__revision__ = '$Format:%H$'
1414

15+
print 'CTEST_FULL_OUTPUT'
16+
1517
from os import path, environ
1618
from shutil import copyfile
1719
from math import sqrt
@@ -157,13 +159,16 @@ class TestQgsServerAccessControl(TestCase):
157159
def setUp(self):
158160
self.testdata_path = unitTestDataPath("qgis_server_accesscontrol")
159161

160-
copyfile(path.join(self.testdata_path, "helloworld.db"), path.join(self.testdata_path, "_helloworld.db"))
162+
dataFile = path.join(self.testdata_path, "helloworld.db")
163+
self.assertTrue(path.isfile(dataFile), 'Could not find data file "{}"'.format(dataFile))
164+
copyfile(dataFile, path.join(self.testdata_path, "_helloworld.db"))
161165

162166
for k in ["QUERY_STRING", "QGIS_PROJECT_FILE"]:
163167
if k in environ:
164168
del environ[k]
165169

166170
self.projectPath = urllib.quote(path.join(self.testdata_path, "project.qgs"))
171+
self.assertTrue(path.isfile(self.projectPath), 'Could not find project file "{}"'.format(self.projectPath))
167172

168173
def tearDown(self):
169174
copyfile(path.join(self.testdata_path, "_helloworld.db"), path.join(self.testdata_path, "helloworld.db"))

0 commit comments

Comments
 (0)
Please sign in to comment.