Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license

This commit is contained in:
2026-09-05 13:26:46 +03:00
commit 03634b1ca3
11340 changed files with 3442369 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import inspect
from tui_gateway import slash_worker
def test_is_orphaned_true_when_ppid_changes():
# Our parent went away and we were reparented to a subreaper/init.
assert slash_worker._is_orphaned(1234, getppid=lambda: 999999) is True
def test_is_orphaned_false_when_direct_parent_is_unchanged():
original_ppid = 1234
assert slash_worker._is_orphaned(original_ppid, getppid=lambda: original_ppid) is False
def test_parent_death_watchdog_contract_has_no_create_time_plumbing():
assert list(inspect.signature(slash_worker._is_orphaned).parameters) == [
"original_ppid",
"getppid",
]
assert list(inspect.signature(slash_worker._start_parent_death_watchdog).parameters) == [
"original_ppid",
]