MCPcopy
hub / github.com/magic-wormhole/magic-wormhole / test_receiver

Function test_receiver

src/wormhole/test/test_cli.py:1093–1106  ·  view source on GitHub ↗
(no_mailbox)

Source from the content-addressed store, hash-verified

1091
1092@pytest_twisted.ensureDeferred
1093async def test_receiver(no_mailbox):
1094 cfg = config("receive")
1095 cfg.hide_progress = True
1096 cfg.listen = False
1097 cfg.relay_url = no_mailbox
1098 cfg.transit_helper = ""
1099 cfg.stdout = io.StringIO()
1100 cfg.stderr = io.StringIO()
1101
1102 cfg.code = "1-abc"
1103
1104 with pytest.raises(ServerConnectionError) as e:
1105 await cmd_receive.receive(cfg)
1106 assert isinstance(e.value.reason, ConnectionRefusedError)
1107
1108
1109def create_named_config(name, url):

Callers

nothing calls this directly

Calls 1

configFunction · 0.85

Tested by

no test coverage detected