Skip to content

Commit

Permalink
test(warnings): resolve test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Nov 12, 2024
1 parent 42f7e3d commit e09340f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defmodule EpochtalkServer.MixProject do
{:hackney, "~> 1.9"},
{:hammer, "~> 6.2"},
{:hammer_backend_redis, "~> 6.1"},
{:html_entities, "~> 0.5.2", only: [:dev]},
{:html_entities, "~> 0.5.2", only: [:dev, :test]},
{:html_sanitize_ex, "~> 1.4"},
{:iteraptor, git: "https://github.com/epochtalk/elixir-iteraptor.git", tag: "1.13.1"},
{:jason, "~> 1.4.0"},
Expand Down
4 changes: 2 additions & 2 deletions test/epochtalk_server_web/controllers/user_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ defmodule Test.EpochtalkServerWeb.Controllers.User do
end
end

@tag :banned
describe "unban/1" do
@tag :banned
test "unbans banned user", %{users: %{user: user}} do
{:ok, unbanned_user_changeset} = Ban.unban(user)
assert unbanned_user_changeset.ban_info == nil
end
end

@tag :malicious
describe "handle_malicious_user/2" do
@tag :malicious
test "populates ban_info and malicious_score if user is malicious", %{
users: %{user: user},
malicious_user_changeset: malicious_user_changeset
Expand Down

0 comments on commit e09340f

Please sign in to comment.