File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
code_to_optimize/code_directories/nested_module_root Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11[tool .codeflash ]
22# All paths are relative to this pyproject.toml's directory.
33module-root = " src/app"
4- tests-root = " tests"
4+ tests-root = " src/ tests"
55test-framework = " pytest"
66ignore-paths = []
77disable-telemetry = true
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ def test_mirror_paths_for_worktree_mode(monkeypatch: pytest.MonkeyPatch):
2828 optimizer .mirror_paths_for_worktree_mode (worktree_dir )
2929
3030 assert optimizer .args .project_root == worktree_dir / "src"
31- assert optimizer .args .test_project_root == worktree_dir
31+ assert optimizer .args .test_project_root == worktree_dir / "src"
3232 assert optimizer .args .module_root == worktree_dir / "src" / "app"
33- assert optimizer .args .tests_root == worktree_dir / "tests"
33+ assert optimizer .args .tests_root == worktree_dir / "src" / " tests"
3434 assert optimizer .args .file == worktree_dir / "src" / "app" / "main.py"
3535
36- assert optimizer .test_cfg .tests_root == worktree_dir / "tests"
36+ assert optimizer .test_cfg .tests_root == worktree_dir / "src" / " tests"
3737 assert optimizer .test_cfg .project_root_path == worktree_dir / "src" # same as project_root
38- assert optimizer .test_cfg .tests_project_rootdir == worktree_dir # same as test_project_root
38+ assert optimizer .test_cfg .tests_project_rootdir == worktree_dir / "src" # same as test_project_root
3939
4040 # test on our repo
4141 monkeypatch .setattr ("codeflash.optimization.optimizer.git_root_dir" , lambda : repo_root )
You can’t perform that action at this time.
0 commit comments