From e1bb2ebd92d03cc0144dcc69ff09f4f01ea571ef Mon Sep 17 00:00:00 2001 From: "Luis F. Talavera R" <47088091+LuisFerTR@users.noreply.github.com> Date: Mon, 11 Oct 2021 09:21:46 -0500 Subject: [PATCH] Replace assert with unittest assertions (#13957) --- tests/test_cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 78a535140a..1e5ba4fa27 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -27,6 +27,6 @@ class CLITest(unittest.TestCase): with CaptureStd() as cs: transformers.commands.transformers_cli.main() - assert "Python version" in cs.out - assert "Platform" in cs.out - assert "Using distributed or parallel set-up in script?" in cs.out + self.assertIn("Python version", cs.out) + self.assertIn("Platform", cs.out) + self.assertIn("Using distributed or parallel set-up in script?", cs.out)