From a899b72c57df13ef1ea37b468239f67cb7d06d2f Mon Sep 17 00:00:00 2001 From: Tim Mahrt Date: Fri, 29 Apr 2016 16:05:59 +0200 Subject: [PATCH] BUGFIX: Fixes for python 3 Also edited some text to be correct (more copy and paste errors) --- integration_tests/lmeds_virtual_demo.py | 4 +--- integration_tests/test/integration_tests.py | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/integration_tests/lmeds_virtual_demo.py b/integration_tests/lmeds_virtual_demo.py index e01d8ad..36cf208 100644 --- a/integration_tests/lmeds_virtual_demo.py +++ b/integration_tests/lmeds_virtual_demo.py @@ -12,8 +12,6 @@ _root = os.path.split(cwd)[0] sys.path.append(_root) -print os.getcwd() - from lmeds import rpt_main leafFolder = "lmeds_demo" @@ -25,7 +23,7 @@ survey = rpt_main.WebSurvey(leafFolder, sequenceFile, languageFile, disableRefresh, audioExtList=audioExtList) -for i in xrange(survey.testSequence.getNumPages()): +for i in range(survey.testSequence.getNumPages()): page = survey.testSequence.getPage(i) survey.buildPage(i, "", page, "no_name", survey.testSequence, survey.sourceCGIFN) diff --git a/integration_tests/test/integration_tests.py b/integration_tests/test/integration_tests.py index bd58b16..4bd64cd 100644 --- a/integration_tests/test/integration_tests.py +++ b/integration_tests/test/integration_tests.py @@ -1,5 +1,5 @@ ''' -Created on Jan 27, 2016 +Created on Apr 29, 2016 @author: tmahrt @@ -26,8 +26,8 @@ class IntegrationTests(unittest.TestCase): """Integration tests""" - def test_add_tiers(self): - """Running 'add_tiers.py'""" + def test_run_lmeds_demo(self): + """Running 'lmeds_virtual_demo'""" print(os.getcwd()) import lmeds_virtual_demo print(os.getcwd())