Skip to content

Commit

Permalink
Fix nightly tests (#1696)
Browse files Browse the repository at this point in the history
* Debug start

* Fix

* Workflow
  • Loading branch information
muellerzr authored Jul 11, 2023
1 parent 180ef7c commit d0a7991
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def test_cross_validation(self):
""".split()
with mock.patch.dict(os.environ, {"TESTING_MOCKED_DATALOADERS": "0"}):
output = run_command(self._launch_args + testargs, return_stdout=True)
results = ast.literal_eval(re.findall("({.+})", output)[-1])
results = re.findall("({.+})", output)
results = [r for r in results if "accuracy" in r][-1]
results = ast.literal_eval(results)
self.assertGreaterEqual(results["accuracy"], 0.75)

def test_multi_process_metrics(self):
Expand Down

0 comments on commit d0a7991

Please sign in to comment.