From 33b3d94a158660a5a4de552a6ff562ef6b11f5ac Mon Sep 17 00:00:00 2001 From: Daniel Mitterdorfer Date: Tue, 16 Jul 2019 08:47:11 +0200 Subject: [PATCH] Remove obsolete test --- tests/racecontrol_test.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/tests/racecontrol_test.py b/tests/racecontrol_test.py index 5384c5659..1cccc3d7e 100644 --- a/tests/racecontrol_test.py +++ b/tests/racecontrol_test.py @@ -92,30 +92,3 @@ def test_runs_a_known_pipeline(self): # ensure we remove it again from the list of registered pipelines to avoid unwanted side effects del racecontrol.pipelines[test_pipeline_name] - - def test_conflicting_pipeline_and_distribution_version(self): - mock_pipeline = mock.Mock() - test_pipeline_name = "unit-test-pipeline" - rnd_pipeline_name = False - - while not rnd_pipeline_name or rnd_pipeline_name == "from-distribution": - rnd_pipeline_name = random.choice(racecontrol.available_pipelines())[0] - - racecontrol.Pipeline(test_pipeline_name, "Pipeline intended for unit-testing", mock_pipeline) - - cfg = config.Config() - cfg.add(config.Scope.benchmark, "race", "pipeline", rnd_pipeline_name) - cfg.add(config.Scope.benchmark, "mechanic", "distribution.version", "6.5.3") - - with self.assertRaises(exceptions.SystemSetupError) as ctx: - racecontrol.run(cfg) - self.assertRegex( - ctx.exception.args[0], - r"--distribution-version can only be used together with pipeline from-distribution, " - "but you specified {}.\n" - "If you intend to benchmark an externally provisioned cluster, don't specify --distribution-version otherwise\n" - "please read the docs for from-distribution pipeline at " - "{}/pipelines.html#from-distribution".format(rnd_pipeline_name, DOC_LINK)) - - # ensure we remove it again from the list of registered pipelines to avoid unwanted side effects - del racecontrol.pipelines[test_pipeline_name]