format: Format tests/test_condor.py according to ruff styling
This commit is contained in:
@@ -224,12 +224,16 @@ def test_write_submit_description(tmp_path: Path):
|
|||||||
assert "--chunk" in body and "--run-dir" in body
|
assert "--chunk" in body and "--run-dir" in body
|
||||||
|
|
||||||
|
|
||||||
def test_write_submit_requires_synced_venv(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
|
def test_write_submit_requires_synced_venv(
|
||||||
|
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
||||||
|
):
|
||||||
run_dir = _prep(_write_inputs(tmp_path))
|
run_dir = _prep(_write_inputs(tmp_path))
|
||||||
cfg = SubmitConfig(run_dir=run_dir, accounting_group="cms", repo_dir=tmp_path)
|
cfg = SubmitConfig(run_dir=run_dir, accounting_group="cms", repo_dir=tmp_path)
|
||||||
# No `giant` next to the (fake) active interpreter, so this falls through
|
# No `giant` next to the (fake) active interpreter, so this falls through
|
||||||
# to repo_dir/.venv/bin/giant, which _write_inputs/_prep also didn't create.
|
# to repo_dir/.venv/bin/giant, which _write_inputs/_prep also didn't create.
|
||||||
monkeypatch.setattr(sys, "executable", str(tmp_path / "not-a-venv" / "bin" / "python"))
|
monkeypatch.setattr(
|
||||||
|
sys, "executable", str(tmp_path / "not-a-venv" / "bin" / "python")
|
||||||
|
)
|
||||||
with pytest.raises(FileNotFoundError, match="uv sync"):
|
with pytest.raises(FileNotFoundError, match="uv sync"):
|
||||||
write_submit(cfg)
|
write_submit(cfg)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user