mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 00:14:48 +00:00
2f2c538cc9
Signed-off-by: Thomas Citharel <tcit@tcit.fr> Make Logger.debug calls lazy Signed-off-by: Thomas Citharel <tcit@tcit.fr> Add missing @moduledocs Signed-off-by: Thomas Citharel <tcit@tcit.fr> Refactor according to credo Signed-off-by: Thomas Citharel <tcit@tcit.fr> Final fixes and add credo to CI Signed-off-by: Thomas Citharel <tcit@tcit.fr> Closes #52
20 lines
413 B
Elixir
20 lines
413 B
Elixir
defmodule MobilizonWeb.AbsintheHelpers do
|
|
@moduledoc """
|
|
Absinthe helpers for tests
|
|
"""
|
|
def query_skeleton(query, query_name) do
|
|
%{
|
|
"operationName" => "#{query_name}",
|
|
"query" => "query #{query_name} #{query}",
|
|
"variables" => "{}"
|
|
}
|
|
end
|
|
|
|
def mutation_skeleton(query) do
|
|
%{
|
|
"operationName" => "",
|
|
"query" => "#{query}",
|
|
"variables" => ""
|
|
}
|
|
end
|
|
end
|