From 587d2f754bcca132d440dbb3543da9885ce228e1 Mon Sep 17 00:00:00 2001 From: Evgeny Maslov Date: Mon, 3 Aug 2020 16:35:50 +0300 Subject: [PATCH] Fix test after disclamier --- test/recommend/test_recommend_pipeline.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/test/recommend/test_recommend_pipeline.py b/test/recommend/test_recommend_pipeline.py index d6a0b250..927f2262 100644 --- a/test/recommend/test_recommend_pipeline.py +++ b/test/recommend/test_recommend_pipeline.py @@ -256,17 +256,8 @@ def test_find_start_end_line_return_by_one_line(self): tree = javalang.parse.parse(f.read()) method = list(tree.filter(javalang.tree.MethodDeclaration))[0][1] start, end = find_start_and_end_lines(method) - self.assertEqual(start, 103) - self.assertEqual(end, 135) - - def test_find_start_end_line_return_qqe(self): - file = Path(self.cur_file_dir, 'start_end/FileStorage.java') - with open(file, 'r', encoding='utf-8') as f: - tree = javalang.parse.parse(f.read()) - method = list(tree.filter(javalang.tree.MethodDeclaration))[0][1] - start, end = find_start_and_end_lines(method) - self.assertEqual(start, 103) - self.assertEqual(end, 135) + self.assertEqual(start, 108) + self.assertEqual(end, 140) def test_find_start_end_line_in_function2(self): file = Path(self.cur_file_dir, 'start_end/UpDirective.java')