remove some warnings for now

need to expamnd those tests later
This commit is contained in:
Lili (Tlapka) 2021-10-11 16:03:10 +02:00
parent d6a59171e7
commit 9c47d722dd
3 changed files with 12 additions and 13 deletions

View File

@ -3,9 +3,9 @@ defmodule PokemonCoutureWeb.ClothesControllerTest do
alias PokemonCouture.Shops alias PokemonCouture.Shops
@create_attrs %{game: "some game", location: "some location", type: "hat", name: "some name", color: "some color"} # @create_attrs %{game: "some game", location: "some location", type: "hat", name: "some name", color: "some color"}
@update_attrs %{game: "some updated game", location: "some updated location", type: "shirt", name: "some updated name", colo: "some updated color"} # @update_attrs %{game: "some updated game", location: "some updated location", type: "shirt", name: "some updated name", colo: "some updated color"}
@invalid_attrs %{game: nil, location: nil, type: "no", name: nil, color: nil} # @invalid_attrs %{game: nil, location: nil, type: "no", name: nil, color: nil}
def fixture(:clothes) do def fixture(:clothes) do
{:ok, clothes} = Shops.create_clothes(@create_attrs) {:ok, clothes} = Shops.create_clothes(@create_attrs)
@ -19,8 +19,8 @@ defmodule PokemonCoutureWeb.ClothesControllerTest do
end end
end end
defp create_clothes(_) do # defp create_clothes(_) do
clothes = fixture(:clothes) # clothes = fixture(:clothes)
%{clothes: clothes} # %{clothes: clothes}
end # end
end end

View File

@ -12,6 +12,6 @@ defmodule PokemonCoutureWeb.ClothesTrackerLiveTest do
test "logged in user sees page", %{conn: conn} do test "logged in user sees page", %{conn: conn} do
conn = conn |> log_in_user(user_fixture()) conn = conn |> log_in_user(user_fixture())
{:ok, _view, html} = live(conn, "/tracker") {:ok, _view, html} = live(conn, "/tracker")
assert html =~ "Listing Clothes" assert html =~ "Clothes Tracker"
end end
end end

View File

@ -1,7 +1,6 @@
defmodule PokemonCoutureWeb.ClothesComponentTest do defmodule PokemonCoutureWeb.ClothesComponentTest do
import Plug.Conn # import Plug.Conn
import Phoenix.ConnTest # import Phoenix.LiveViewTest
import Phoenix.LiveViewTest # import PokemonCouture.AccountsFixtures
import PokemonCouture.AccountsFixtures # @endpoint PokemonCoutureWeb.Endpoint
@endpoint PokemonCoutureWeb.Endpoint
end end