Skip to content

Commit 1a4fe38

Browse files
committed
v1.3.0
1 parent 020c447 commit 1a4fe38

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

examples/phoenix_project/lib/hello/application.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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,

lib/util/constants.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
[

test/ecto_errors_test.exs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
3129
end

0 commit comments

Comments
 (0)