mirror of
https://github.com/TencentCloud/Octop.git
synced 2026-10-25 07:03:26 +08:00
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>
21 lines
695 B
Python
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
|