Skip to content

Commit ffe4459

Browse files
committed
fix: make runtime_status test agnostic to pmxt installation state
CI installs pmxt as a dependency, so pmxt_installed=True there. Test now checks boolean type and valid keys, not a specific value.
1 parent 670256e commit ffe4459

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_tools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@
4141

4242
@pytest.mark.unit
4343
class TestConfig:
44-
def test_runtime_status_works_without_pmxt(self):
44+
def test_runtime_status_returns_valid_structure(self):
4545
result = pmxt_runtime_status()
4646
assert result["success"]
4747
assert "mode" in result["data"]
48-
assert result["data"]["pmxt_installed"] is False
48+
assert isinstance(result["data"]["pmxt_installed"], bool)
49+
assert isinstance(result["data"]["has_api_key"], bool)
50+
assert result["data"]["mode"] in ("hosted", "custom", "local-sidecar")
4951

5052
def test_runtime_status_str(self):
5153
s = runtime_status_str()

0 commit comments

Comments
 (0)