defmodule AlchemyPubWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. """ use ExUnit.CaseTemplate using do quote do use AlchemyPubWeb, :verified_routes import AlchemyPubWeb.ConnCase import Phoenix.ConnTest import Plug.Conn # The default endpoint for testing @endpoint AlchemyPubWeb.Endpoint # Import conveniences for testing with connections end end setup _tags do {:ok, conn: Phoenix.ConnTest.build_conn()} end end