def test_valid_command(self, *_): """Return result after running a valid command.""" result = run_flow(["dumb", "command"], "fake contents") self.assertEqual(result, { "errors": [], "passed": True, "flowVersion": "0.45.0" })
def test_command_fails(self, *_): """Return an error after command returns an exit stat.""" with self.assertRaises(subprocess.CalledProcessError): run_flow(["bad", "command"], "fake contents")
def test_valid_command(self, *_): """Return result after running a valid command.""" result = run_flow(['dumb', 'command'], 'fake contents') self.assertEqual(result, {"dumb": False})