mirror of
https://github.com/obra/superpowers.git
synced 2026-05-11 11:39:04 +08:00
evals: use pre-commit hooks
This commit is contained in:
@@ -64,11 +64,12 @@ class TestCompareCommand:
|
||||
def test_set_superpowers_root_default_when_unset(monkeypatch, tmp_path):
|
||||
"""When SUPERPOWERS_ROOT is unset, helper sets it to PROJECT_ROOT.parent."""
|
||||
monkeypatch.delenv("SUPERPOWERS_ROOT", raising=False)
|
||||
from drill.cli import _set_superpowers_root_default, PROJECT_ROOT
|
||||
from drill.cli import PROJECT_ROOT, _set_superpowers_root_default
|
||||
|
||||
_set_superpowers_root_default()
|
||||
|
||||
import os
|
||||
|
||||
assert os.environ["SUPERPOWERS_ROOT"] == str(PROJECT_ROOT.parent)
|
||||
|
||||
|
||||
@@ -80,4 +81,5 @@ def test_set_superpowers_root_default_respects_existing(monkeypatch):
|
||||
_set_superpowers_root_default()
|
||||
|
||||
import os
|
||||
|
||||
assert os.environ["SUPERPOWERS_ROOT"] == "/custom/path"
|
||||
|
||||
Reference in New Issue
Block a user