File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed
examples/phoenix_project/lib/hello Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ defmodule Hello.Application do
99 def start ( _type , _args ) do
1010 if Mix . env ( ) == :test do
1111 { :ok , _container } = Testcontainers.Ecto . postgres_container ( app: :hello )
12- end
1312
14- # to use mysql, change
15- # `adapter: Ecto.Adapters.Postgres`
16- # in lib/hello/repo.ex, to
17- # `adapter: Ecto.Adapters.MyXQL`
13+ # to use mysql, change
14+ # `adapter: Ecto.Adapters.Postgres`
15+ # in lib/hello/repo.ex, to
16+ # `adapter: Ecto.Adapters.MyXQL`
1817
19- # mysql_container(app: :hello, database: "hello_test#{System.get_env("MIX_TEST_PARTITION")}")
18+ # {:ok, _container} = Testcontainers.Ecto.mysql_container(app: :hello)
19+ end
2020
2121 children = [
2222 HelloWeb.Telemetry ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ defmodule Testcontainers.Constants do
22 @ moduledoc false
33
44 def library_name , do: :testcontainers
5- def library_version , do: "1.2.11 "
5+ def library_version , do: "1.3.0 "
66 def container_label , do: "org.testcontainers"
77 def container_lang_label , do: "org.testcontainers.lang"
88 def container_lang_value , do: Elixir |> Atom . to_string ( ) |> String . downcase ( )
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ defmodule TestcontainersElixir.MixProject do
22 use Mix.Project
33
44 @ app :testcontainers
5- @ version "1.2.11 "
6- @ source_url "https://github.com/jarlah /testcontainers-elixir"
5+ @ version "1.3.0 "
6+ @ source_url "https://github.com/testcontainers /testcontainers-elixir"
77
88 def project do
99 [
Original file line number Diff line number Diff line change @@ -23,9 +23,7 @@ defmodule Testcontainers.EctoErrorsTest do
2323
2424 test "app must be atom" do
2525 assert_raise ArgumentError , "Missing or not an atom: app=\" hello\" " , fn ->
26- mysql_container (
27- app: "hello"
28- )
26+ mysql_container ( app: "hello" )
2927 end
3028 end
3129end
You can’t perform that action at this time.
0 commit comments