ExUnit.start() defmodule TestHelper do def generate_random_string(string_length \\ 20) do :random.seed(:os.timestamp) Enum.map(1..string_length, fn _ -> (:random.uniform * 25 + 65) |> round end) |> to_string end def uris do Mix.Config.read!("config/config.exs") |> hd |> elem(1) |> hd |> elem(1) end def utc_time do {x, {a,b,c}} = :calendar.local_time |> :calendar.local_time_to_universal_time_dst |> hd {x, {a,b,c + 60}} end end