Factory: Set users to be ap_enabled by default.
authorlain <lain@soykaf.club>
Mon, 25 May 2020 10:59:42 +0000 (12:59 +0200)
committerlain <lain@soykaf.club>
Mon, 25 May 2020 10:59:42 +0000 (12:59 +0200)
test/support/factory.ex

index d4284831c0a34ce33d3bfe026f00fc53fa7a80b9..6e3676aca302bd1a6542810e4782aac48d2e2215 100644 (file)
@@ -34,7 +34,8 @@ defmodule Pleroma.Factory do
       last_digest_emailed_at: NaiveDateTime.utc_now(),
       last_refreshed_at: NaiveDateTime.utc_now(),
       notification_settings: %Pleroma.User.NotificationSetting{},
-      multi_factor_authentication_settings: %Pleroma.MFA.Settings{}
+      multi_factor_authentication_settings: %Pleroma.MFA.Settings{},
+      ap_enabled: true
     }
 
     %{