mirror of https://github.com/gmbrax/Pilgrim.git
Add the tests to the command file
This commit is contained in:
parent
0ab1e38726
commit
8bd03bcaca
|
|
@ -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()
|
||||||
Loading…
Reference in New Issue