rename project from SimpleshopTheme to Berrypod

All modules, configs, paths, and references updated.
836 tests pass, zero warnings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-02-18 21:23:15 +00:00
parent c65e777832
commit 9528700862
300 changed files with 23932 additions and 1349 deletions

View File

@@ -1,4 +1,4 @@
defmodule SimpleshopTheme.DataCase do
defmodule Berrypod.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
@@ -10,7 +10,7 @@ defmodule SimpleshopTheme.DataCase do
we enable the SQL sandbox, so changes done to the database
are reverted at the end of every test. If you are using
PostgreSQL, you can even run database tests asynchronously
by setting `use SimpleshopTheme.DataCase, async: true`, although
by setting `use Berrypod.DataCase, async: true`, although
this option is not recommended for other databases.
"""
@@ -18,17 +18,17 @@ defmodule SimpleshopTheme.DataCase do
using do
quote do
alias SimpleshopTheme.Repo
alias Berrypod.Repo
import Ecto
import Ecto.Changeset
import Ecto.Query
import SimpleshopTheme.DataCase
import Berrypod.DataCase
end
end
setup tags do
SimpleshopTheme.DataCase.setup_sandbox(tags)
Berrypod.DataCase.setup_sandbox(tags)
:ok
end
@@ -36,7 +36,7 @@ defmodule SimpleshopTheme.DataCase do
Sets up the sandbox based on the test tags.
"""
def setup_sandbox(tags) do
pid = Ecto.Adapters.SQL.Sandbox.start_owner!(SimpleshopTheme.Repo, shared: not tags[:async])
pid = Ecto.Adapters.SQL.Sandbox.start_owner!(Berrypod.Repo, shared: not tags[:async])
on_exit(fn -> Ecto.Adapters.SQL.Sandbox.stop_owner(pid) end)
end