Skip to content

Commit

Permalink
update cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Apr 15, 2024
1 parent d4b8669 commit b9c4a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_cli():
main()
out = out.getvalue()
assert "usage: litgpt" in out
assert "{download,chat,finetune,pretrain,generate,convert,merge_lora,evaluate}" in out
assert "{download,chat,finetune,pretrain,generate,convert,merge_lora,evaluate,serve}" in out
assert (
"""Available subcommands:
download Download weights or tokenizer data from the Hugging
Expand All @@ -24,7 +24,7 @@ def test_cli():
in out
)
assert ("""evaluate Evaluate a model with the LM Evaluation Harness.""") in out

assert ("""serve Serve and deploy a model with LitServe.""") in out
out = StringIO()
with pytest.raises(SystemExit), redirect_stdout(out), mock.patch("sys.argv", ["litgpt", "finetune", "-h"]):
main()
Expand Down

0 comments on commit b9c4a28

Please sign in to comment.