Tests: Fix tests failing because of info being null.
authorlain <lain@soykaf.club>
Fri, 1 Nov 2019 13:16:00 +0000 (14:16 +0100)
committerlain <lain@soykaf.club>
Fri, 1 Nov 2019 13:16:00 +0000 (14:16 +0100)
test/support/builders/user_builder.ex

index 6da16f71a90df664f9467633cfef851502f4c132..4bdaddc4abadbe598c21c26065a09615ce257133 100644 (file)
@@ -10,7 +10,8 @@ defmodule Pleroma.Builders.UserBuilder do
       password_hash: Comeonin.Pbkdf2.hashpwsalt("test"),
       bio: "A tester.",
       ap_id: "some id",
-      last_digest_emailed_at: NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second)
+      last_digest_emailed_at: NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second),
+      info: %{}
     }
 
     Map.merge(user, data)