Don't resize terminal on session disconnect

Rename DISCONNECT_RESIZE to DEFAULT_TERMINAL_SIZE
Update tests for removed _resize_on_disconnect and stricter available check

Bump version to 0.2.7
This commit is contained in:
GitHub Copilot
2026-01-24 16:09:53 +00:00
parent b5b144dcd0
commit 2f61bd7747
4 changed files with 11 additions and 28 deletions
+5 -2
View File
@@ -67,13 +67,16 @@ class TestDockerStatsCollector:
"""Tests for Docker stats collector."""
def test_available_checks_socket(self, tmp_path):
"""available property checks socket existence."""
"""available property checks socket existence and connectivity."""
socket_path = tmp_path / "docker.sock"
collector = DockerStatsCollector(str(socket_path))
assert collector.available is False
# Just touching the file isn't enough - need actual socket connectivity
# Since we can't easily create a real Unix socket in tests,
# verify that a non-socket file returns False
socket_path.touch()
assert collector.available is True
assert collector.available is False # File exists but can't connect
def test_get_cpu_history_empty(self):
"""Empty history returns empty list."""