Skip to content

Commit ba5fdd8

Browse files
fix failed tests
1 parent 57cf4a9 commit ba5fdd8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_code_replacement.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class NewClass:
8888
def __init__(self, name):
8989
self.name = name
9090
def new_function(self, value):
91+
totally_new_function(123)
9192
return self.name
9293
def new_function2(value):
9394
return value
@@ -106,6 +107,7 @@ def new_function(self, value):
106107
def __init__(self, name):
107108
self.name = name
108109
def new_function(self, value):
110+
totally_new_function(123)
109111
return self.name
110112
def new_function2(value):
111113
return value
@@ -143,6 +145,7 @@ class NewClass:
143145
def __init__(self, name):
144146
self.name = name
145147
def new_function(self, value):
148+
totally_new_function(123)
146149
return other_function(self.name)
147150
def new_function2(value):
148151
return value
@@ -164,6 +167,7 @@ class NewClass:
164167
def __init__(self, name):
165168
self.name = name
166169
def new_function(self, value):
170+
totally_new_function(123)
167171
return other_function(self.name)
168172
def new_function2(value):
169173
return value
@@ -198,6 +202,7 @@ def totally_new_function(value):
198202
return value
199203
200204
def other_function(st):
205+
totally_new_function(123)
201206
return(st * 2)
202207
203208
class NewClass:
@@ -230,6 +235,7 @@ def yet_another_function(values):
230235
return len(values)
231236
232237
def other_function(st):
238+
totally_new_function(123)
233239
return(st * 2)
234240
235241
def totally_new_function(value):
@@ -259,6 +265,7 @@ def totally_new_function(value):
259265
return value
260266
261267
def yet_another_function(values: Optional[str]):
268+
totally_new_function(123)
262269
return len(values) + 2
263270
264271
def other_function(st):
@@ -291,6 +298,7 @@ def other_function(st):
291298
print("Au revoir")
292299
293300
def yet_another_function(values):
301+
totally_new_function(123)
294302
return len(values) + 2
295303
296304
def other_function(st):
@@ -730,6 +738,7 @@ def __init__(self, name):
730738
def __call__(self, value):
731739
return self.name
732740
def new_function2(value):
741+
totally_new_function()
733742
return cst.ensure_type(value, str)
734743
"""
735744

@@ -750,6 +759,7 @@ def __init__(self, name):
750759
def __call__(self, value):
751760
return "I am still old"
752761
def new_function2(value):
762+
totally_new_function()
753763
return cst.ensure_type(value, str)
754764
755765
def totally_new_function(value: Optional[str]):

0 commit comments

Comments
 (0)