Why Nostr? What is Njump?
2025-03-18 14:58:32

Tyler A. Young 🧑🏻‍💻⚗️ on Nostr: If you're writing tests for an Ecto schema module, consider using ...

If you're writing tests for an Ecto schema module, consider using Ecto.Changeset.apply_action/2 (or its ! variant) rather than actually hitting the database.

It’ll return the struct as though it had hit the DB if and only if the changeset was valid.
Author Public Key
npub1dwca0vsahtluny9645zl3uxcfq8k3gesh64ttxryya05xqxneqhqfdgd29