def test_edit_rec(): """test func.""" editor = 'nanoe' args = ('url', 'title_in', 'tags_in', 'desc') with mock.patch('buku.to_temp_file_content'), \ mock.patch('buku.os'), \ mock.patch('buku.open'), \ mock.patch('buku.parse_temp_file_content') as m_ptfc: import buku res = buku.edit_rec(editor, *args) assert res == m_ptfc.return_value
def test_edit_rec(): """test func.""" editor = 'nanoe' args = ('url', 'title_in', 'tags_in', 'desc') with mock.patch('buku.to_temp_file_content'), \ mock.patch('buku.os'), \ mock.patch('buku.open'), \ mock.patch('buku.parse_temp_file_content') as m_ptfc: import buku res = buku.edit_rec(editor, *args) assert res == m_ptfc.return_value
def test_edit_rec(): """test func.""" editor = "nanoe" args = ("url", "title_in", "tags_in", "desc") with mock.patch("buku.to_temp_file_content"), mock.patch( "buku.os"), mock.patch("buku.open"), mock.patch( "buku.parse_temp_file_content") as m_ptfc: import buku res = buku.edit_rec(editor, *args) assert res == m_ptfc.return_value