Writing a Blog Engine in Phoenix and Elixir: Part 3, Adding Roles to our Models
Brandon Richey

Great series!

I was wondering, had you considered importing the TestHelper support file into all model_case.ex and conn_case.ex rather than aliasing? Something like:

using do
quote do
# Import conveniences for testing with connections
use Phoenix.ConnTest
alias Pxblog.Repo
import Ecto
import Ecto.Changeset
import Ecto.Query
import Pxblog.Router.Helpers
import Pxblog.TestHelpers
# The default endpoint for testing
@endpoint Pxblog.Endpoint

Not much more work, with the plus-side of not having to alias again from inside model and controller tests.