diff --git a/mix.lock b/mix.lock index 3ad09ef5..a38f8c81 100644 --- a/mix.lock +++ b/mix.lock @@ -5,7 +5,7 @@ "cowboy": {:hex, :cowboy, "2.14.2", "4008be1df6ade45e4f2a4e9e2d22b36d0b5aba4e20b0a0d7049e28d124e34847", [:make, :rebar3], [{:cowlib, ">= 2.16.0 and < 3.0.0", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, ">= 1.8.0 and < 3.0.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "569081da046e7b41b5df36aa359be71a0c8874e5b9cff6f747073fc57baf1ab9"}, "cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, "cowlib": {:hex, :cowlib, "2.16.0", "54592074ebbbb92ee4746c8a8846e5605052f29309d3a873468d76cdf932076f", [:make, :rebar3], [], "hexpm", "7f478d80d66b747344f0ea7708c187645cfcc08b11aa424632f78e25bf05db51"}, - "credo": {:hex, :credo, "1.7.13", "126a0697df6b7b71cd18c81bc92335297839a806b6f62b61d417500d1070ff4e", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "47641e6d2bbff1e241e87695b29f617f1a8f912adea34296fb10ecc3d7e9e84f"}, + "credo": {:hex, :credo, "1.7.14", "c7e75216cea8d978ba8c60ed9dede4cc79a1c99a266c34b3600dd2c33b96bc92", [:mix], [{:bunt, "~> 0.2.1 or ~> 1.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "12a97d6bb98c277e4fb1dff45aaf5c137287416009d214fb46e68147bd9e0203"}, "dialyxir": {:hex, :dialyxir, "1.4.7", "dda948fcee52962e4b6c5b4b16b2d8fa7d50d8645bbae8b8685c3f9ecb7f5f4d", [:mix], [{:erlex, ">= 0.2.8", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "b34527202e6eb8cee198efec110996c25c5898f43a4094df157f8d28f27d9efe"}, "earmark_parser": {:hex, :earmark_parser, "1.4.44", "f20830dd6b5c77afe2b063777ddbbff09f9759396500cdbe7523efd58d7a339c", [:mix], [], "hexpm", "4778ac752b4701a5599215f7030989c989ffdc4f6df457c5f36938cc2d2a2750"}, "erlex": {:hex, :erlex, "0.2.8", "cd8116f20f3c0afe376d1e8d1f0ae2452337729f68be016ea544a72f767d9c12", [:mix], [], "hexpm", "9d66ff9fedf69e49dc3fd12831e12a8a37b76f8651dd21cd45fcf5561a8a7590"}, diff --git a/test/anubis/client/base_test.exs b/test/anubis/client/base_test.exs index 25d2f888..35f7ca4b 100644 --- a/test/anubis/client/base_test.exs +++ b/test/anubis/client/base_test.exs @@ -1511,7 +1511,7 @@ defmodule Anubis.Client.BaseTest do assert error.reason == :parse_error assert error.data[:tool] == "get_weather" assert is_list(error.data[:errors]) - assert length(error.data[:errors]) > 0 + refute Enum.empty?(error.data[:errors]) end test "handles tools with complex outputSchema", %{client: client} do diff --git a/test/anubis/server/component/schema_test.exs b/test/anubis/server/component/schema_test.exs index 1e81ff77..fe3aee8a 100644 --- a/test/anubis/server/component/schema_test.exs +++ b/test/anubis/server/component/schema_test.exs @@ -770,10 +770,10 @@ defmodule Anubis.Server.Component.SchemaTest do assert {:ok, _} = validator.(%{email: "test@example.com", age: 25}) assert {:error, errors} = validator.(%{age: 25}) - assert length(errors) > 0 + refute Enum.empty?(errors) assert {:error, errors} = validator.(%{email: "test@example.com", age: 200}) - assert length(errors) > 0 + refute Enum.empty?(errors) end end diff --git a/test/anubis/transport/stdio_test.exs b/test/anubis/transport/stdio_test.exs index 43430cd4..cfb1779c 100644 --- a/test/anubis/transport/stdio_test.exs +++ b/test/anubis/transport/stdio_test.exs @@ -119,7 +119,7 @@ defmodule Anubis.Transport.STDIOTest do Process.sleep(100) messages = StubClient.get_messages() - assert length(messages) > 0 + refute Enum.empty?(messages) end end @@ -165,7 +165,7 @@ defmodule Anubis.Transport.STDIOTest do Process.sleep(100) messages = StubClient.get_messages() - assert length(messages) > 0 + refute Enum.empty?(messages) safe_stop(pid) end diff --git a/test/anubis/transport/streamable_http_test.exs b/test/anubis/transport/streamable_http_test.exs index 17d155a9..7b6dcf2e 100644 --- a/test/anubis/transport/streamable_http_test.exs +++ b/test/anubis/transport/streamable_http_test.exs @@ -92,7 +92,7 @@ defmodule Anubis.Transport.StreamableHTTPTest do Process.sleep(100) messages = StubClient.get_messages() - assert length(messages) > 0 + refute Enum.empty?(messages) assert List.first(messages) =~ "result" StreamableHTTP.shutdown(transport) @@ -160,7 +160,7 @@ defmodule Anubis.Transport.StreamableHTTPTest do Process.sleep(200) messages = StubClient.get_messages() - assert length(messages) > 0 + refute Enum.empty?(messages) StreamableHTTP.shutdown(transport) StubClient.clear_messages()