From 8bd03bcaca194df426a9fb4842c892f4780d53bb Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Mon, 21 Jul 2025 19:36:37 -0300 Subject: [PATCH] Add the tests to the command file --- tests/test_command.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_command.py diff --git a/tests/test_command.py b/tests/test_command.py new file mode 100644 index 0000000..c95a85a --- /dev/null +++ b/tests/test_command.py @@ -0,0 +1,9 @@ +from unittest.mock import patch +from pilgrim.command import main + +@patch('pilgrim.command.Application') +def test_main_function_runs_application(MockApplication): + mock_app_instance = MockApplication.return_value + main() + MockApplication.assert_called_once() + mock_app_instance.run.assert_called_once()