some ai generated code from claude that does not work

This commit is contained in:
2026-04-08 02:03:43 -04:00
parent 3c9910a723
commit 90d7eab7d0
19 changed files with 1206 additions and 53 deletions

View File

@@ -93,11 +93,15 @@ defmodule Mixer.Posts.TweetLikeTest do
end
defp user_fixture(email) do
username =
email |> String.split("@") |> List.first() |> String.replace(~r/[^a-zA-Z0-9_]/, "_")
User
|> Ash.Changeset.for_create(:register_with_password, %{
email: email,
password: "password1234",
password_confirmation: "password1234"
password_confirmation: "password1234",
username: username
})
|> Ash.create!()
end