Files
Octop/tests/unit/desktop/test_capture_display.py
7a7852799a feat: share experts by group and separate incoming shares from local lists (#2320)
Experts use the same audience rules as other resources, cards mark who shared them, and list filters show only what others shared with you. Host control moves under infra/control, text assist calls a host model factory, and providers can be marked for embeddings.

Co-authored-by: jubaoliang <jubaoliang@tencent.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-22 19:46:14 +08:00

21 lines
695 B
Python

"""Tests for DISPLAY helpers."""
from __future__ import annotations
from octop.infra.control.desktop.capture import display_str, is_linux_virtual_display
def test_display_str_defaults() -> None:
assert display_str(None).startswith(":")
def test_is_linux_virtual_display(monkeypatch) -> None:
monkeypatch.setattr("octop.infra.control.desktop.capture.sys.platform", "linux")
assert is_linux_virtual_display(":99") is True
assert is_linux_virtual_display(":0") is False
def test_is_linux_virtual_display_non_linux(monkeypatch) -> None:
monkeypatch.setattr("octop.infra.control.desktop.capture.sys.platform", "darwin")
assert is_linux_virtual_display(":99") is False