Skip to content

Commit

Permalink
We can’t return things from test_ methods
Browse files Browse the repository at this point in the history
This is apparently deprecated… sigh

Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Feb 12, 2023
1 parent 5edbeb1 commit f8b826e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rebench/tests/configurator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def test_number_of_experiments_testconf(self):
self.ui, None, None, 'all')
self.assertEqual(6, len(cnf.get_experiments()))

def test_get_experiment(self):
def _get_experiment(self):
cnf = Configurator(load_config(self._path + '/small.conf'), DataStore(self.ui),
self.ui, None)
exp = cnf.get_experiment('Test')
self.assertIsNotNone(exp)
return exp

def test_get_runs(self):
exp = self.test_get_experiment()
exp = self._get_experiment()
runs = exp.runs
self.assertEqual(2 * 2 * 2, len(runs))

Expand Down

0 comments on commit f8b826e

Please sign in to comment.