chartremotely 0.3.10__tar.gz → 0.3.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chartremotely-0.3.10 → chartremotely-0.3.11}/PKG-INFO +1 -1
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/doctor.py +19 -1
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/PKG-INFO +1 -1
- {chartremotely-0.3.10 → chartremotely-0.3.11}/pyproject.toml +1 -1
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_doctor.py +7 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/LICENSE +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/README.md +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/__init__.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/answer.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/assets/shortcut.plist +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/ax.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/cli.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/config.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/displays.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/guilock.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/hearing.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/holder.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/keystore.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/layout.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/mcpclient.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/patron.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/popups.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/push.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/recent.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/registry.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/relay.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/requestlog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/resolve.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/scales.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/screen.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/server.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/services.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/setup.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/shortcut.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/snapshot.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/studies.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/symbol.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/tailnet.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/terminal.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/timeframe.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/understand.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/vocab.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/voice.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely/window.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/SOURCES.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/dependency_links.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/entry_points.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/requires.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/chartremotely.egg-info/top_level.txt +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/setup.cfg +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_changelog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_hearing.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_patron.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_popups.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_push.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_recent.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_registry.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_relay.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_requestlog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_resolve.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_scales.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_screen.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_setup.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_snapshot.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_stamp_changelog.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_timeframe.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_understand.py +0 -0
- {chartremotely-0.3.10 → chartremotely-0.3.11}/tests/test_voice.py +0 -0
|
@@ -75,7 +75,25 @@ def _check_services() -> tuple[str, str]:
|
|
|
75
75
|
return service_verdict({name: services.running_python(name) for name in services.LABELS})
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
def
|
|
78
|
+
def screen_locked() -> bool:
|
|
79
|
+
"""True while the login session's screen is locked.
|
|
80
|
+
|
|
81
|
+
A locked screen hides every window from the accessibility layer, so the
|
|
82
|
+
chart's controls look missing when they are only out of reach.
|
|
83
|
+
"""
|
|
84
|
+
import Quartz
|
|
85
|
+
|
|
86
|
+
session = Quartz.CGSessionCopyCurrentDictionary() or {}
|
|
87
|
+
return bool(session.get("CGSSessionScreenIsLocked"))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
LOCKED = (BAD, ("the screen is locked, so the chart controls cannot be read - "
|
|
91
|
+
"unlock this Mac; until then it cannot change the chart"))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def _check_controls(locked=screen_locked) -> tuple[str, str]:
|
|
95
|
+
if locked():
|
|
96
|
+
return LOCKED
|
|
79
97
|
from . import ax, symbol, timeframe
|
|
80
98
|
cfg = config.load()
|
|
81
99
|
try:
|
|
@@ -81,3 +81,10 @@ def test_a_refused_token_is_named():
|
|
|
81
81
|
|
|
82
82
|
def test_a_wrong_answer_fails():
|
|
83
83
|
assert doctor.listener_verdict(8899, "t", post=lambda port, token: "ERR nope")[0] == doctor.BAD
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# -- chart controls: a locked screen is named, not mistaken for a missing chart -----------
|
|
87
|
+
|
|
88
|
+
def test_a_locked_screen_is_named_before_looking_for_controls():
|
|
89
|
+
status, detail = doctor._check_controls(locked=lambda: True)
|
|
90
|
+
assert status == doctor.BAD and "locked" in detail and "unlock" in detail
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|