Skip to content

Commit 1234ff2

Browse files
committed
allow print
1 parent 5c60353 commit 1234ff2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codeflash/verification/codeflash_capture.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def codeflash_capture(function_name: str, tmp_dir_path: str, tests_root: str, is
7878

7979
def decorator(wrapped):
8080
@functools.wraps(wrapped)
81-
def wrapper(*args, **kwargs):
81+
def wrapper(*args, **kwargs) -> None:
8282
# Dynamic information retrieved from stack
8383
test_module_name, test_class_name, test_name, line_id = get_test_info_from_stack(tests_root)
8484

@@ -103,7 +103,7 @@ def wrapper(*args, **kwargs):
103103

104104
# Generate invocation id
105105
invocation_id = f"{line_id}_{codeflash_test_index}"
106-
print(
106+
print( # noqa: T201
107107
f"!######{test_module_name}:{(test_class_name + '.' if test_class_name else '')}{test_name}:{function_name}:{loop_index}:{invocation_id}######!"
108108
)
109109
# Connect to sqlite
@@ -129,7 +129,8 @@ def wrapper(*args, **kwargs):
129129
0
130130
].__dict__ # self is always the first argument, this is ensured during instrumentation
131131
else:
132-
raise ValueError("Instance state could not be captured.")
132+
msg = "Instance state could not be captured."
133+
raise ValueError(msg)
133134
codeflash_cur.execute(
134135
"CREATE TABLE IF NOT EXISTS test_results (test_module_path TEXT, test_class_name TEXT, test_function_name TEXT, function_getting_tested TEXT, loop_index INTEGER, iteration_id TEXT, runtime INTEGER, return_value BLOB, verification_type TEXT)"
135136
)

0 commit comments

Comments
 (0)