2021-03-04 05:56:28 +08:00
|
|
|
defmodule LivebookWeb.ConnCase do
|
2021-01-08 03:55:45 +08:00
|
|
|
use ExUnit.CaseTemplate
|
|
|
|
|
|
|
|
using do
|
|
|
|
quote do
|
|
|
|
# Import conveniences for testing with connections
|
|
|
|
import Plug.Conn
|
|
|
|
import Phoenix.ConnTest
|
2021-03-04 05:56:28 +08:00
|
|
|
import LivebookWeb.ConnCase
|
2021-01-08 03:55:45 +08:00
|
|
|
|
2021-03-04 05:56:28 +08:00
|
|
|
alias LivebookWeb.Router.Helpers, as: Routes
|
2021-01-08 03:55:45 +08:00
|
|
|
|
|
|
|
# The default endpoint for testing
|
2021-03-04 05:56:28 +08:00
|
|
|
@endpoint LivebookWeb.Endpoint
|
2021-01-08 03:55:45 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
setup _tags do
|
|
|
|
{:ok, conn: Phoenix.ConnTest.build_conn()}
|
|
|
|
end
|
|
|
|
end
|