Skip to content

Commit b92bf14

Browse files
authored
Merge pull request #196 from codeflash-ai/cf-capture-fix
Codeflash Capture should not depend on anything inside codeflash
2 parents c080680 + 309695a commit b92bf14

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

codeflash/models/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class TestingMode(enum.Enum):
364364
PERFORMANCE = "performance"
365365
LINE_PROFILE = "line_profile"
366366

367-
367+
#TODO this class is duplicated in codeflash_capture
368368
class VerificationType(str, Enum):
369369
FUNCTION_CALL = (
370370
"function_call" # Correctness verification for a test function, checks input values and output values)

codeflash/verification/codeflash_capture.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
from __future__ import annotations
22

3+
# This file should not have any dependencies on codeflash
34
import functools
45
import gc
56
import inspect
67
import os
78
import sqlite3
89
import time
910
from pathlib import Path
10-
11+
from enum import Enum
1112
import dill as pickle
1213

13-
from codeflash.models.models import VerificationType
14+
class VerificationType(str, Enum):
15+
FUNCTION_CALL = (
16+
"function_call" # Correctness verification for a test function, checks input values and output values)
17+
)
18+
INIT_STATE_FTO = "init_state_fto" # Correctness verification for fto class instance attributes after init
19+
INIT_STATE_HELPER = "init_state_helper" # Correctness verification for helper class instance attributes after init
1420

1521

1622
def get_test_info_from_stack(tests_root: str) -> tuple[str, str | None, str, str]:

0 commit comments

Comments
 (0)