MCPcopy Create free account
hub / github.com/instantdb/instant / test_send_magic_code

Function test_send_magic_code

client/sandbox/admin-sdk-python/src/main.py:28–32  ·  view source on GitHub ↗
(db: AsyncInstant)

Source from the content-addressed store, hash-verified

26
27
28async def test_send_magic_code(db: AsyncInstant) -> None:
29 email = f"sandbox-{id()}@instantdb.test"
30 code = await db.auth.send_magic_code(email)
31 assert isinstance(code, str) and code, f"empty code: {code!r}"
32 print(f"✓ send_magic_code returned a code (len={len(code)})")
33
34
35async def test_check_magic_code_round_trip(db: AsyncInstant) -> None:

Callers

nothing calls this directly

Calls 2

idFunction · 0.90
send_magic_codeMethod · 0.45

Tested by

no test coverage detected