--absolute asks for another form of time, not for one fewer fact
A never-heard node has no instant to print, so the timestamp language dropped "never" back to the plain absent token and a contacts listing under --absolute could no longer tell "we have not heard from it" from "this row has no heard time". The absent word survives the switch; only the form of a real time changes. Also drops a dead guard in the preferences writer. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
de0f60cbe0
commit
8d2a7b8281
3 files changed
+15
-6
No files matched your search
@@ -269,10 +269,12 @@ def test_contacts_names_every_node_bare_and_ages_every_time(run) -> None: # noq
|
||||
age = line.split()[2]
|
||||
assert age in ("now", "never") or age[-1] in "mhdw"
|
||||
|
||||
# `--absolute` asks for a different *form* of time, not for one fewer fact, so
|
||||
# `never` survives it: a node that has never been heard has no instant to print.
|
||||
absolute = result_lines(run("--absolute", "contacts"))[1:]
|
||||
for line in absolute:
|
||||
stamp = line.split()[2]
|
||||
assert stamp == "-" or stamp[:4].isdigit()
|
||||
assert stamp in ("-", "never") or stamp[:4].isdigit()
|
||||
|
||||
|
||||
def test_contacts_never_elides_a_key(run) -> None: # noqa: ANN001
|
||||
|
||||
Reference in new issue
Block a user