From bb078f0215891cc825699e14892f1625df3d2312 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 17 Jan 2024 16:24:57 +0800 Subject: fix(test): add main() --- tests/test-api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-api.py b/tests/test-api.py index 3687632..4332886 100644 --- a/tests/test-api.py +++ b/tests/test-api.py @@ -60,3 +60,5 @@ def test_main_commands(test_id, args, expected_call, mock_sys_argv, mock_api_fun elif expected_call[0] == "error": captured = capsys.readouterr() assert "error: unrecognized arguments" in captured.err + +pytest.main() \ No newline at end of file -- cgit v1.2.3-70-g09d2