mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-09 08:27:36 +08:00
22 lines
468 B
Elixir
22 lines
468 B
Elixir
defmodule LivebookWeb.ConnCase do
|
|
use ExUnit.CaseTemplate
|
|
|
|
using do
|
|
quote do
|
|
# Import conveniences for testing with connections
|
|
import Plug.Conn
|
|
import Phoenix.ConnTest
|
|
import Livebook.Factory
|
|
import LivebookWeb.ConnCase
|
|
|
|
use LivebookWeb, :verified_routes
|
|
|
|
# The default endpoint for testing
|
|
@endpoint LivebookWeb.Endpoint
|
|
end
|
|
end
|
|
|
|
setup _tags do
|
|
{:ok, conn: Phoenix.ConnTest.build_conn()}
|
|
end
|
|
end
|