aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/tests/test_node_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/tests/test_node_status.py')
-rw-r--r--packages/meshbay-node/tests/test_node_status.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/meshbay-node/tests/test_node_status.py b/packages/meshbay-node/tests/test_node_status.py
index 091b1db..897be33 100644
--- a/packages/meshbay-node/tests/test_node_status.py
+++ b/packages/meshbay-node/tests/test_node_status.py
@@ -110,6 +110,13 @@ async def _session(
session._group_id = GROUP
session._user_id = "grenet" if operator else "mallory"
session._username = session._user_id
+ # The device on the connection, as `device_hello` leaves it. Node-wide
+ # controls are gated on a key the node pinned as an operator and *proved*
+ # on this connection, not on the account id in the token — a hub can choose
+ # the second and cannot produce the first (NS4, M3). A fixture that sets
+ # only the account tests a check that is no longer the check.
+ session._pinned_pk = pk_op if operator else ""
+ session._device_confirmed = bool(operator)
session._pk_user = ""
session._uploads = {}
session._admin_ops = {}