Skip to content

Commit 7f38aaf

Browse files
committed
Move JOB_SCRIPT_PATH const
1 parent dd189b2 commit 7f38aaf

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

cluv/cli/init.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
__all__ = ["init"]
1111

1212
SCRIPTS_DIR_PATH = "scripts"
13-
JOB_SCRIPT_PATH = f"{SCRIPTS_DIR_PATH}/job.sh"
1413
DEFAULT_RESULTS_PATH = "logs"
1514
PACKAGE_ROOT = Path(__file__).resolve().parents[1]
1615
# Repository root when running cluv from a source checkout.

tests/test_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from cluv.cli.init import (
1010
DEFAULT_RESULTS_PATH,
11-
JOB_SCRIPT_PATH,
11+
SCRIPTS_DIR_PATH,
1212
check_cluv_config,
1313
check_git,
1414
check_home_dir,
@@ -19,6 +19,7 @@
1919

2020
REPO_ROOT = Path(__file__).resolve().parents[1]
2121
CLUV_INIT_MODULE = importlib.import_module("cluv.cli.init")
22+
JOB_SCRIPT_PATH = f"{SCRIPTS_DIR_PATH}/job.sh"
2223

2324

2425
class TestCheckHomeDir:
@@ -102,7 +103,6 @@ def test_create_symlink(self, tmp_path, monkeypatch) -> None:
102103
assert expected_results_scratch_path.exists()
103104
assert expected_results_path.resolve() == expected_results_scratch_path.resolve()
104105

105-
106106
def test_keep_existing_symlink(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
107107
"""check_symlink_to_scratch() should not overwrite an existing symlink not pointing to scratch"""
108108
scratch_path = tmp_path / "scratch"

0 commit comments

Comments
 (0)