Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Nov 6, 2023
1 parent 020c447 commit 1a4fe38
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
12 changes: 6 additions & 6 deletions examples/phoenix_project/lib/hello/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/util/constants.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
[
Expand Down
4 changes: 1 addition & 3 deletions test/ecto_errors_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1a4fe38

Please sign in to comment.