FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 9f503c04 authored by L. Bower's avatar L. Bower
Browse files

fixing tests to work with new HTMLRunner

parent 096b3aec
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class FullTestEnvSuit(BaseEnvSuitTestSuite.EnvSuitTestSuite):
run_dict['Environment']['EWS-Plotting']['Ethiopia']['FilterForCountry'] = "True"
run_dict['Environment']['EWS-Plotting']['Kenya']['FilterForCountry'] = "True"
os.makedirs(IntegrationTestUtils.TEST_OUT_PATH)
os.makedirs(IntegrationTestUtils.TEST_OUT_PATH, exist_ok = True)
IntegrationTestUtils.TEMP_CONFIG_FILE_NAME = IntegrationTestUtils.TEST_OUT_PATH + "temp_config.json"
IntegrationTestUtils.write_json_file(run_dict, IntegrationTestUtils.TEMP_CONFIG_FILE_NAME)
......
......@@ -35,7 +35,7 @@ class FullTestSurvey(BaseSurveyTestSuite.SurveyTestSuite):
run_dict['WorkspacePath'] = IntegrationTestUtils.TEST_OUT_PATH
run_dict['Survey']['SkipServerDownload'] = False
os.makedirs(IntegrationTestUtils.TEST_OUT_PATH)
os.makedirs(IntegrationTestUtils.TEST_OUT_PATH, exist_ok = True)
IntegrationTestUtils.TEMP_CONFIG_FILE_NAME = IntegrationTestUtils.TEST_OUT_PATH + "temp_config.json"
IntegrationTestUtils.write_json_file(run_dict, IntegrationTestUtils.TEMP_CONFIG_FILE_NAME)
......
......@@ -102,7 +102,7 @@ class IntegrationTestUtils:
_test_report_dir = IntegrationTestUtils.TEST_JOB_DIR
"""
the HTMLTestRunner will create the directory if it does not exist, we are putting the poutout into the
the HTMLTestRunner will create the directory if it does not exist, we are putting the output into the
TEST_OUT_PATH, which is the top-level test directory for this run, not the TEST_JOB_DIR, which is the dir
for the pipeline being tested
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment