2
0
mirror of https://github.com/codl/forget synced 2025-01-07 12:52:34 +01:00
forget-cancellare-vecchi-toot/test/test_doit.py

11 lines
211 B
Python
Raw Normal View History

import dodo
import doit
from unittest.mock import patch
def test_doit():
with patch('sys.exit') as _exit:
with patch('sys.argv'):
doit.run(dodo)
_exit.assert_called_with(0)