Skip to content

Commit 84d9062

Browse files
committed
asdfasdf
1 parent 2847163 commit 84d9062

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tests/test_torchtune.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33

44
class TestTorchtune(unittest.TestCase):
55
def test_help(self):
6-
result = subprocess.run(["tune", "--help"], stdout=subprocess.PIPE)
6+
result = subprocess.run(
7+
["tune", "--help"],
8+
capture_output=True,
9+
text=True
10+
)
711

812
self.assertEqual(0, result.returncode)
9-
self.assertIsNone(result.stderr)
10-
self.assertIn("Download a model from the Hugging Face Hub or Kaggle Model Hub.", result.stdout.decode("utf-8"))
13+
self.assertIn(
14+
"Download a model from the Hugging Face Hub or Kaggle",
15+
result.stdout
16+
)

0 commit comments

Comments
 (0)