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
|
2022-08-23 05:12:54 +08:00
|
|
|
import Livebook.Factory
|
2021-03-04 05:56:28 +08:00
|
|
|
import LivebookWeb.ConnCase
|
2021-01-08 03:55:45 +08:00
|
|
|
|
2023-02-23 02:34:54 +08:00
|
|
|
use LivebookWeb, :verified_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
|