test: update tests for latest ash version

This commit is contained in:
Zach Daniel 2023-05-25 10:46:07 -04:00
parent 9ab0ea2161
commit 376717ae36

View file

@ -69,7 +69,8 @@ defmodule AshPostgres.BulkCreateTest do
test "skips invalid by default" do
assert %{records: [_], errors: [_]} =
Api.bulk_create!([%{title: "fred"}, %{title: "not allowed"}], Post, :create,
return_records?: true
return_records?: true,
return_errors?: true
)
end
@ -77,7 +78,8 @@ defmodule AshPostgres.BulkCreateTest do
assert [{:ok, _}, {:error, _}] =
Api.bulk_create!([%{title: "fred"}, %{title: "not allowed"}], Post, :create,
return_records?: true,
return_stream?: true
return_stream?: true,
return_errors?: true
)
|> Enum.to_list()
end