mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
test: update tests for latest ash version
This commit is contained in:
parent
9ab0ea2161
commit
376717ae36
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue