MishkaPay.Test.Keys (Mishka Pay v0.0.1)

Copy Markdown View Source

The keys MishkaPay.Test.put_keys/3 feeds. MishkaPay.Credentials.fetch/3 reads them before any keys plugin: a test's own keys answer first, and the project's plugins answer the rest. It is a table, not a plugin, so a project's plugin registry holds nothing of the test kit's.

The keys live in a public ETS table keyed by the test's pid. A plugin runs in the caller's process, so the lookup walks the caller and its $callers: a test's own tasks see its keys, and async tests never see each other's.