In an effort to decouple things, I made a phoenix 1.3 umbrella project with no ecto. I just put ecto layer in a self contained elixir module, used by a json api on the phoenix web side.
I even can use contexts inside this db layer module, or use it with absinthe/graphql.
While it is working nicely, I think I may have gone a little too far in decoupling. My main concern is when I start to test the API, it will populate my real database… not a sandboxed one.
I don’t really want to mock up things between 2 modules of the same umbrella.
Is there a method to tell my database layer to use a sandboxed test db, from the phoenix api test suite?