def test_get_parameters_invalid(): args = MagicMock() args.get.side_effect = ['text', None] text, date = get_parameters_for_task_creation(args) assert date is None assert text == text
def test_get_parameters_ok(): args = MagicMock(date="date", text="text") text, date = get_parameters_for_task_creation(args) assert text == text assert date == date