chore: fix tests

This commit is contained in:
Zach Daniel 2022-05-28 21:19:11 -04:00
parent 13c2abe11a
commit c54bcdfdda
4 changed files with 7 additions and 7 deletions

View file

@ -164,7 +164,7 @@ defmodule AshGraphql.ErrorsTest do
AshGraphql.Test.MultitenantTag
|> Ash.Changeset.for_create(
:create,
[name: "My Tag"],
[name: "My Tag4"],
tenant: tenant
)
|> AshGraphql.Test.Api.create!()
@ -195,7 +195,7 @@ defmodule AshGraphql.ErrorsTest do
AshGraphql.Test.MultitenantTag
|> Ash.Changeset.for_create(
:create,
[name: "My Tag"],
[name: "My Tag2"],
tenant: tenant
)
|> AshGraphql.Test.Api.create!()
@ -226,7 +226,7 @@ defmodule AshGraphql.ErrorsTest do
AshGraphql.Test.MultitenantTag
|> Ash.Changeset.for_create(
:create,
[name: "My Tag"],
[name: "My Tag3"],
tenant: tenant
)
|> AshGraphql.Test.Api.create!()

View file

@ -310,7 +310,7 @@ defmodule AshGraphql.ReadTest do
AshGraphql.Test.MultitenantTag
|> Ash.Changeset.for_create(
:create,
[name: "My Tag"],
[name: "My Tag1"],
tenant: tenant
)
|> AshGraphql.Test.Api.create!()
@ -327,7 +327,7 @@ defmodule AshGraphql.ReadTest do
%{
data: %{
"getMultitenantTag" => %{
"name" => "My Tag"
"name" => "My Tag1"
}
}
}} ==

View file

@ -38,7 +38,7 @@ defmodule AshGraphql.Test.MultitenantTag do
end
identities do
identity(:name, [:name])
identity(:name, [:name], pre_check_with: AshGraphql.Test.Api)
end
relationships do

View file

@ -34,7 +34,7 @@ defmodule AshGraphql.Test.Tag do
end
identities do
identity(:name, [:name])
identity(:name, [:name], pre_check_with: AshGraphql.Test.Api)
end
relationships do