fix some code style and add checks to ci

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-01-14 17:56:50 +01:00
parent fc89c563ec
commit 1217361b6c
64 changed files with 242 additions and 108 deletions

View File

@@ -1,4 +1,7 @@
defmodule Eventos.Factory do
@moduledoc """
Factory for fixtures with ExMachina
"""
# with Ecto
use ExMachina.Ecto, repo: Eventos.Repo
@@ -12,7 +15,7 @@ defmodule Eventos.Factory do
end
def account_factory do
{:ok, {privkey, pubkey}} = RsaEx.generate_keypair("4096")
{:ok, {_, pubkey}} = RsaEx.generate_keypair("4096")
%Eventos.Accounts.Account{
username: sequence("Thomas"),
domain: nil,
@@ -47,4 +50,4 @@ defmodule Eventos.Factory do
event: build(:event)
}
end
end
end