Coding style.

- Tools should return a status and a text string,
  not a status and a fill3 widget.
This commit is contained in:
Andrew Hamilton 2019-07-18 23:58:01 +10:00
parent 8eff1d5a0f
commit 9b5ad3332e
25 changed files with 246 additions and 243 deletions

View file

@ -64,7 +64,7 @@ class ToolsTestCase(unittest.TestCase):
with self.subTest(input_filename=input_filename):
status, result = run_tool(tool, input_filename)
golden_path = result_path(tool, input_filename)
golden.assertGolden(widget_to_string(result), golden_path)
golden.assertGolden(str(result), golden_path)
self.assertEqual(status, expected_status)
def test_metadata(self):