2
0
mirror of https://github.com/codl/forget synced 2025-01-06 04:07:16 +01:00
forget-cancellare-vecchi-toot/test/test_doit.py
codl c54390801c
code quality fixes
also ran yapf on tasks.py
2018-08-14 03:51:14 +02:00

11 lines
211 B
Python

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)