From c7ae35668f35c99755392878a5ecb804f7350cc7 Mon Sep 17 00:00:00 2001 From: Anderson Chauphan Date: Mon, 12 Feb 2024 09:49:07 -0700 Subject: [PATCH] Removed old script unit tests (#600) Removed unit tests related to the old script, `cdash_analyze_and_report_random_failures.py`. These tests will be put back as unittests for the module file `CDashAnalyzeReportRandomFailures.py`. This change will keep `cdash_analyze_and_report_random_failures_UnitTests.py` focused on the system tests for how the class `CDashAnalyzeReportRandomFailuresDriver` is used. --- ...ze_and_report_random_failures_UnitTests.py | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/test/ci_support/cdash_analyze_and_report_random_failures_UnitTests.py b/test/ci_support/cdash_analyze_and_report_random_failures_UnitTests.py index b2f8216f6..74d098ec3 100644 --- a/test/ci_support/cdash_analyze_and_report_random_failures_UnitTests.py +++ b/test/ci_support/cdash_analyze_and_report_random_failures_UnitTests.py @@ -45,7 +45,6 @@ from FindCISupportDir import * import CDashQueryAnalyzeReport as CDQAR -from cdash_analyze_and_report_random_failures import * from CDashQueryAnalyzeReportUnitTestHelpers import * # Base test directory in the build tree @@ -102,30 +101,6 @@ def __enter__(self): def __exit__(self, exc_type, exc_val, exc_tb): self.remove() -############################################################################# -# -# Unit tests for cdash_analyze_and_report_random_failures.py -# -############################################################################# - - -class test_getBuildIdFromTest(unittest.TestCase): - - def test_single_slash(self): - test_dict = { 'buildSummaryLink':'build/somenumber' } - self.assertEqual( - getBuildIdFromTest(test_dict), 'somenumber') - - def test_multiple_slash(self): - test_dict = { 'buildSummaryLink':'build/path/temp/somenumber' } - self.assertEqual( - getBuildIdFromTest(test_dict), 'somenumber') - - def test_no_slash(self): - test_dict = { 'buildSummaryLink':'buildid' } - self.assertEqual( - getBuildIdFromTest(test_dict), 'buildid') - ############################################################################# #