fix: property tests should allow private attributes that are accepted

This commit is contained in:
Zach Daniel 2024-05-10 10:39:26 -04:00
parent f8b186e40f
commit dbf848e264

View file

@ -179,7 +179,7 @@ defmodule Ash.Generator do
arguments = Enum.reject(action.arguments, &find_manage_change(&1, action)) arguments = Enum.reject(action.arguments, &find_manage_change(&1, action))
resource resource
|> Ash.Resource.Info.public_attributes() |> Ash.Resource.Info.attributes()
|> Enum.filter(&(&1.name in action.accept)) |> Enum.filter(&(&1.name in action.accept))
|> set_allow_nil(action) |> set_allow_nil(action)
|> Enum.concat(arguments) |> Enum.concat(arguments)