Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danschultzer committed Sep 27, 2021
1 parent 3b2134f commit 9887424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/pow_assent/ecto/schema_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ defmodule PowAssent.NoContextUser do
use Pow.Ecto.Schema
use PowAssent.Ecto.Schema

@ecto_derive_inspect_for_redacted_fields false

schema "users" do
pow_user_fields()

Expand Down Expand Up @@ -76,6 +78,8 @@ defmodule PowAssent.Ecto.SchemaTest do
extensions: [PowEmailConfirmation]
use PowAssent.Ecto.Schema

@ecto_derive_inspect_for_redacted_fields false

schema "users" do
has_many :user_identities, PowAssent.Test.Ecto.UserIdentities.UserIdentity, foreign_key: :user_id, on_delete: :delete_all

Expand Down Expand Up @@ -160,6 +164,8 @@ defmodule PowAssent.Ecto.SchemaTest do
use Pow.Ecto.Schema
use PowAssent.Ecto.Schema

@ecto_derive_inspect_for_redacted_fields false

schema "users" do
has_many :user_identities,
MyApp.UserIdentities.UserIdentity,
Expand Down
4 changes: 4 additions & 0 deletions test/pow_assent/ecto/user_identities/context_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ defmodule PowAssent.Test.Ecto.Users.UserWithoutUserIdentities do
use Ecto.Schema
use Pow.Ecto.Schema

@ecto_derive_inspect_for_redacted_fields false

schema "users" do
pow_user_fields()
timestamps()
Expand All @@ -15,6 +17,8 @@ defmodule PowAssent.Test.Ecto.Users.UserWithCustomChangesetUserIdentities do
use Pow.Ecto.Schema
use PowAssent.Ecto.Schema

@ecto_derive_inspect_for_redacted_fields false

schema "users" do
has_many :user_identities, PowAssent.Test.WithCustomChangeset.UserIdentities.UserIdentity, foreign_key: :user_id, on_delete: :delete_all

Expand Down

0 comments on commit 9887424

Please sign in to comment.