File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -435,17 +435,17 @@ def test_load_functional_constraints_loads_valid_python_file():
435435 """
436436 Test that the function loads a valid Python file and returns a callable function.
437437 """
438- test_file = "user_function .py"
438+ test_file = "test_user_function .py"
439439 abspath = os .path .dirname (os .path .realpath (__file__ ))
440440 final_path = abspath + "/" + test_file
441441 with open (final_path , "w" ) as f :
442442 f .write (
443443 """
444- def user_function ():
444+ def test_user_function ():
445445 return 1"""
446446 )
447447 func = load_functional_constraints (test_file )
448- assert func .__name__ == "user_function "
448+ assert func .__name__ == "test_user_function "
449449 assert func () == 1
450450
451451
Original file line number Diff line number Diff line change 11def user_function ():
2- return 1
2+ return 1
You can’t perform that action at this time.
0 commit comments