Introduce group basic federation, event new page and notifications

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-02-18 08:57:00 +01:00
parent 300ef8f245
commit 4144e9ffd0
416 changed files with 32220 additions and 16750 deletions

View File

@@ -3,7 +3,10 @@ defmodule Mobilizon.GraphQL.AbsintheHelpers do
Absinthe helpers for tests
"""
use Phoenix.ConnTest
import Plug.Conn
import Phoenix.ConnTest
alias Plug.Conn
@endpoint Mobilizon.Web.Endpoint
@@ -23,6 +26,7 @@ defmodule Mobilizon.GraphQL.AbsintheHelpers do
}
end
@spec graphql_query(Conn.t(), Keyword.t()) :: map | no_return
def graphql_query(conn, options) do
conn
|> post("/api", build_query(options[:query], Keyword.get(options, :variables, %{})))