Skip to content

Commit b029f04

Browse files
committed
Fixing linting errors
1 parent 8d3baf1 commit b029f04

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/utils/test_constraints.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def user_function():
2-
return 1
2+
return 1

0 commit comments

Comments
 (0)