chartremotely 0.2.6__tar.gz → 0.2.7__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.2.6 → chartremotely-0.2.7}/PKG-INFO +1 -1
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/assets/shortcut-template.plist +11 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/PKG-INFO +1 -1
- {chartremotely-0.2.6 → chartremotely-0.2.7}/pyproject.toml +1 -1
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_forward.py +2 -1
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_setup.py +11 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/LICENSE +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/README.md +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/__init__.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/answer.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/ax.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/cli.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/config.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/doctor.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/forward.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/guilock.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/keystore.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/layout.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/mcpclient.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/push.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/registry.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/relay.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/requestlog.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/resolve.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/scales.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/server.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/services.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/setup.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/shortcut.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/snapshot.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/studies.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/symbol.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/tailnet.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/timeframe.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/vocab.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely/window.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/SOURCES.txt +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/dependency_links.txt +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/entry_points.txt +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/requires.txt +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/chartremotely.egg-info/top_level.txt +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/setup.cfg +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_push.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_relay.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_requestlog.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_resolve.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_snapshot.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_stamp_changelog.py +0 -0
- {chartremotely-0.2.6 → chartremotely-0.2.7}/tests/test_timeframe.py +0 -0
|
@@ -1066,6 +1066,17 @@
|
|
|
1066
1066
|
<false/>
|
|
1067
1067
|
</dict>
|
|
1068
1068
|
</dict>
|
|
1069
|
+
<dict>
|
|
1070
|
+
<key>WFWorkflowActionIdentifier</key>
|
|
1071
|
+
<string>is.workflow.actions.speaktext</string>
|
|
1072
|
+
<key>WFWorkflowActionParameters</key>
|
|
1073
|
+
<dict>
|
|
1074
|
+
<key>WFSpeakTextWait</key>
|
|
1075
|
+
<false/>
|
|
1076
|
+
<key>WFText</key>
|
|
1077
|
+
<string>On it, requesting your chart now. Look at your screen or visit the website for the screen capture.</string>
|
|
1078
|
+
</dict>
|
|
1079
|
+
</dict>
|
|
1069
1080
|
<dict>
|
|
1070
1081
|
<key>WFWorkflowActionIdentifier</key>
|
|
1071
1082
|
<string>is.workflow.actions.downloadurl</string>
|
|
@@ -184,7 +184,8 @@ def test_the_shortcut_asks_where_after_scale_and_sends_it_beside_cmd():
|
|
|
184
184
|
actions = plistlib.loads(shortcut.template())["WFWorkflowActions"]
|
|
185
185
|
prompts = [a["WFWorkflowActionParameters"].get("WFAskActionPrompt") for a in actions]
|
|
186
186
|
assert prompts.index("Where?") > prompts.index("What scale?")
|
|
187
|
-
final = actions[prompts.index("Where?")
|
|
187
|
+
final = next(a for a in actions[prompts.index("Where?"):]
|
|
188
|
+
if a["WFWorkflowActionIdentifier"].endswith(".downloadurl"))["WFWorkflowActionParameters"]
|
|
188
189
|
fields = {i["WFKey"]["Value"]["string"]: i["WFValue"]["Value"]
|
|
189
190
|
for i in final["WFJSONValues"]["Value"]["WFDictionaryFieldValueItems"]}
|
|
190
191
|
assert fields["cmd"]["string"] == "set  | ", "the vocab grammar is unchanged"
|
|
@@ -52,6 +52,17 @@ def test_every_question_takes_one_line_so_return_answers_it():
|
|
|
52
52
|
assert ask.get("WFAskActionAllowsMultilineText") is False, ask.get("WFAskActionPrompt")
|
|
53
53
|
|
|
54
54
|
|
|
55
|
+
def test_the_shortcut_says_it_is_on_it_while_the_request_goes_out():
|
|
56
|
+
actions = plistlib.loads(shortcut.template())["WFWorkflowActions"]
|
|
57
|
+
kinds = [a["WFWorkflowActionIdentifier"].rsplit(".", 1)[-1] for a in actions]
|
|
58
|
+
where = next(i for i, a in enumerate(actions)
|
|
59
|
+
if a["WFWorkflowActionParameters"].get("CustomOutputName") == "Where")
|
|
60
|
+
assert kinds[where + 1:where + 3] == ["speaktext", "downloadurl"]
|
|
61
|
+
ack = actions[where + 1]["WFWorkflowActionParameters"]
|
|
62
|
+
assert ack["WFSpeakTextWait"] is False, "waiting for the words would delay the chart"
|
|
63
|
+
assert ack["WFText"].startswith("On it, requesting your chart now.")
|
|
64
|
+
|
|
65
|
+
|
|
55
66
|
def test_filling_the_template_changes_the_placeholders_and_nothing_else():
|
|
56
67
|
raw = shortcut.template()
|
|
57
68
|
filled = shortcut.fill(raw, "https://mac.example.ts.net/chart", "T0KEN")
|
|
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
|