@@ -67,7 +67,7 @@ def divide(self, a, b):
6767
6868def test_get_methods ():
6969 """Should return all of the methods"""
70- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
70+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
7171
7272 all_methods = python_analysis .get_methods ()
7373 assert all_methods is not None
@@ -79,7 +79,7 @@ def test_get_methods():
7979
8080def test_get_functions ():
8181 """Should return all of the functions"""
82- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
82+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
8383
8484 all_functions = python_analysis .get_functions ()
8585 assert all_functions is not None
@@ -91,7 +91,7 @@ def test_get_functions():
9191
9292def test_get_all_modules (tmp_path ):
9393 """Should return all of the modules"""
94- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = tmp_path , source_code = None , analysis_backend_path = None , analysis_json_path = None )
94+ python_analysis = PythonAnalysis (project_dir = tmp_path , source_code = None )
9595
9696 # set up some temporary modules
9797 temp_file_path = os .path .join (tmp_path , "hello.py" )
@@ -111,7 +111,7 @@ def test_get_all_modules(tmp_path):
111111
112112def test_get_method_details ():
113113 """Should return the method details"""
114- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
114+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
115115
116116 method_details = python_analysis .get_method_details ("add(self, a, b)" )
117117 assert method_details is not None
@@ -121,7 +121,7 @@ def test_get_method_details():
121121
122122def test_is_parsable ():
123123 """Should be able to parse the code"""
124- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
124+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
125125
126126 code = "def is_parsable(self, code: str) -> bool: return True"
127127 is_parsable = python_analysis .is_parsable (code )
@@ -134,7 +134,7 @@ def test_is_parsable():
134134
135135def test_get_raw_ast ():
136136 """Should return the raw AST"""
137- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
137+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
138138
139139 raw_ast = python_analysis .get_raw_ast (PYTHON_CODE )
140140 assert raw_ast is not None
@@ -144,7 +144,7 @@ def test_get_raw_ast():
144144
145145def test_get_imports ():
146146 """Should return all of the imports"""
147- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
147+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
148148
149149 all_imports = python_analysis .get_imports ()
150150 assert all_imports is not None
@@ -156,7 +156,7 @@ def test_get_imports():
156156
157157def test_get_variables ():
158158 """Should return all of the variables"""
159- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
159+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
160160
161161 with pytest .raises (NotImplementedError ) as except_info :
162162 python_analysis .get_variables ()
@@ -165,7 +165,7 @@ def test_get_variables():
165165
166166def test_get_classes ():
167167 """Should return all of the classes"""
168- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
168+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
169169
170170 all_classes = python_analysis .get_classes ()
171171 assert all_classes is not None
@@ -178,7 +178,7 @@ def test_get_classes():
178178
179179def test_get_classes_by_criteria ():
180180 """Should return all of the classes that match the criteria"""
181- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
181+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
182182
183183 with pytest .raises (NotImplementedError ) as except_info :
184184 python_analysis .get_classes_by_criteria ()
@@ -187,7 +187,7 @@ def test_get_classes_by_criteria():
187187
188188def test_get_sub_classes ():
189189 """Should return all of the subclasses"""
190- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
190+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
191191
192192 with pytest .raises (NotImplementedError ) as except_info :
193193 python_analysis .get_sub_classes ()
@@ -196,7 +196,7 @@ def test_get_sub_classes():
196196
197197def test_get_nested_classes ():
198198 """Should return all of the nested classes"""
199- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
199+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
200200
201201 with pytest .raises (NotImplementedError ) as except_info :
202202 python_analysis .get_nested_classes ()
@@ -205,7 +205,7 @@ def test_get_nested_classes():
205205
206206def test_get_constructors ():
207207 """Should return all of the constructors"""
208- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
208+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
209209
210210 with pytest .raises (NotImplementedError ) as except_info :
211211 python_analysis .get_constructors ()
@@ -214,7 +214,7 @@ def test_get_constructors():
214214
215215def test_get_methods_in_class ():
216216 """Should return all of the methods in the class"""
217- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
217+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
218218
219219 with pytest .raises (NotImplementedError ) as except_info :
220220 python_analysis .get_methods_in_class ()
@@ -223,7 +223,7 @@ def test_get_methods_in_class():
223223
224224def test_get_fields ():
225225 """Should return all of the fields in the class"""
226- python_analysis = PythonAnalysis (eager_analysis = True , project_dir = None , source_code = PYTHON_CODE , analysis_backend_path = None , analysis_json_path = None )
226+ python_analysis = PythonAnalysis (project_dir = None , source_code = PYTHON_CODE )
227227
228228 with pytest .raises (NotImplementedError ) as except_info :
229229 python_analysis .get_fields ()
0 commit comments