diff --git a/examples/phoenix_project/lib/hello/application.ex b/examples/phoenix_project/lib/hello/application.ex index 91ec0cc..bed91e6 100644 --- a/examples/phoenix_project/lib/hello/application.ex +++ b/examples/phoenix_project/lib/hello/application.ex @@ -9,14 +9,14 @@ defmodule Hello.Application do def start(_type, _args) do if Mix.env() == :test do {:ok, _container} = Testcontainers.Ecto.postgres_container(app: :hello) - end - # to use mysql, change - # `adapter: Ecto.Adapters.Postgres` - # in lib/hello/repo.ex, to - # `adapter: Ecto.Adapters.MyXQL` + # to use mysql, change + # `adapter: Ecto.Adapters.Postgres` + # in lib/hello/repo.ex, to + # `adapter: Ecto.Adapters.MyXQL` - # mysql_container(app: :hello, database: "hello_test#{System.get_env("MIX_TEST_PARTITION")}") + # {:ok, _container} = Testcontainers.Ecto.mysql_container(app: :hello) + end children = [ HelloWeb.Telemetry, diff --git a/lib/util/constants.ex b/lib/util/constants.ex index 14df606..59f06fb 100644 --- a/lib/util/constants.ex +++ b/lib/util/constants.ex @@ -2,7 +2,7 @@ defmodule Testcontainers.Constants do @moduledoc false def library_name, do: :testcontainers - def library_version, do: "1.2.11" + def library_version, do: "1.3.0" def container_label, do: "org.testcontainers" def container_lang_label, do: "org.testcontainers.lang" def container_lang_value, do: Elixir |> Atom.to_string() |> String.downcase() diff --git a/mix.exs b/mix.exs index 8499d80..87337ee 100644 --- a/mix.exs +++ b/mix.exs @@ -2,8 +2,8 @@ defmodule TestcontainersElixir.MixProject do use Mix.Project @app :testcontainers - @version "1.2.11" - @source_url "https://github.com/jarlah/testcontainers-elixir" + @version "1.3.0" + @source_url "https://github.com/testcontainers/testcontainers-elixir" def project do [ diff --git a/test/ecto_errors_test.exs b/test/ecto_errors_test.exs index db8ce85..ca89aee 100644 --- a/test/ecto_errors_test.exs +++ b/test/ecto_errors_test.exs @@ -23,9 +23,7 @@ defmodule Testcontainers.EctoErrorsTest do test "app must be atom" do assert_raise ArgumentError, "Missing or not an atom: app=\"hello\"", fn -> - mysql_container( - app: "hello" - ) + mysql_container(app: "hello") end end end