mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
undoing some test modifications
This commit is contained in:
parent
9df1ae0092
commit
3da7b739de
1 changed files with 1 additions and 13 deletions
|
|
@ -1648,18 +1648,6 @@ print("Hello world")
|
|||
def new_function2(value):
|
||||
return cst.ensure_type(value, str)
|
||||
|
||||
print("Hello world")
|
||||
"""
|
||||
|
||||
modified_code = """print("Hello world")
|
||||
class NewClass:
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
def __call__(self, value):
|
||||
return "I am still old"
|
||||
def new_function2(value):
|
||||
return cst.ensure_type(value, str)
|
||||
|
||||
print("Hello world")
|
||||
"""
|
||||
function_names: list[str] = ["NewClass.__init__", "NewClass.__call__", "NewClass.new_function2"]
|
||||
|
|
@ -1672,7 +1660,7 @@ print("Hello world")
|
|||
preexisting_objects=preexisting_objects,
|
||||
project_root_path=Path(__file__).resolve().parent.resolve(),
|
||||
)
|
||||
assert new_code == modified_code
|
||||
assert new_code == original_code
|
||||
|
||||
def test_global_reassignment() -> None:
|
||||
original_code = """a=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue