def findit_implementations_view(): from traad.rope.findit import find_implementations args = request.json data = find_implementations(project, args['offset'], args['path']) # TODO: What if it actually fails? return { 'result': 'success', 'data': data, }
def test_find_implementations(self): impls = findit.find_implementations( self.proj, 33, 'basic/overrides.py') self.assertEqual(len(impls), 1)