Skip to content

Commit 1271f26

Browse files
committed
wip
1 parent e433989 commit 1271f26

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

code_to_optimize/tests/pytest/test_bubble_sort.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from code_to_optimize.bubble_sort import sorter
2+
import pytest
23

3-
4+
@pytest.mark.no_autouse
45
def test_sort():
56
input = [5, 4, 3, 2, 1, 0]
67
output = sorter(input)

codeflash/verification/test_runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def run_behavioral_tests(
5353
)
5454
else:
5555
test_files.append(str(file.instrumented_behavior_file_path))
56+
test_files = ['/Users/codeflash/Downloads/codeflash-dev/codeflash/code_to_optimize/tests/pytest/test_bubble_sort__perfinstrumented.py']
5657
pytest_cmd_list = (
5758
shlex.split(f"{SAFE_SYS_EXECUTABLE} -m pytest", posix=IS_POSIX)
5859
if pytest_cmd == "pytest"

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ formatter-cmds = [
238238
"uvx ruff check --exit-zero --fix $file",
239239
"uvx ruff format $file",
240240
]
241+
[tool.pytest.ini_options]
242+
markers = [
243+
"no_autouse"
244+
]
241245

242246

243247
[build-system]

0 commit comments

Comments
 (0)