make tests async

This commit is contained in:
shibao 2023-04-14 23:48:50 -04:00
parent 334d841d57
commit 8cb6068b85
14 changed files with 14 additions and 14 deletions

View File

@ -3,7 +3,7 @@ defmodule Cannery.InvitesTest do
This module tests the Cannery.Accounts.Invites context
"""
use Cannery.DataCase
use Cannery.DataCase, async: true
alias Cannery.Accounts
alias Cannery.Accounts.{Invite, Invites}
alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule Cannery.AccountsTest do
This tests the accounts module
"""
use Cannery.DataCase
use Cannery.DataCase, async: true
alias Cannery.Accounts
alias Cannery.Accounts.{Invites, User, UserToken}
alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule Cannery.ActivityLogTest do
This module tests the ActivityLog context
"""
use Cannery.DataCase
use Cannery.DataCase, async: true
import Cannery.Fixtures
alias Cannery.{ActivityLog, ActivityLog.ShotRecord, Ammo}

View File

@ -3,7 +3,7 @@ defmodule Cannery.AmmoTest do
Tests the Ammo context
"""
use Cannery.DataCase
use Cannery.DataCase, async: true
alias Cannery.{Ammo, Ammo.Pack, Ammo.Type, Containers}
alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule Cannery.ContainersTest do
Tests for the Containers context
"""
use Cannery.DataCase
use Cannery.DataCase, async: true
alias Cannery.{Containers, Containers.Container, Containers.Tag}
alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.ExportControllerTest do
Tests the export function
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
alias Cannery.{ActivityLog, Ammo, Containers, Repo}
@moduletag :export_controller_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.HomeControllerTest do
Tests the home page
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
@moduletag :home_controller_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.ContainerLiveTest do
Tests the containers liveviews
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest
alias Cannery.Containers

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.HomeLiveTest do
Tests the home page
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest
@moduletag :home_live_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.InviteLiveTest do
Tests the invite liveview
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest
alias Cannery.Accounts.Invites

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.PackLiveTest do
Tests pack live pages
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest
alias Cannery.{Ammo, Repo}

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.RangeLiveTest do
This module tests the Range LiveViews
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest
import Cannery.Fixtures

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.TagLiveTest do
Tests the tag liveviews
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest
@moduletag :tag_live_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.TypeLiveTest do
Tests the type liveview
"""
use CanneryWeb.ConnCase
use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest
alias Cannery.{Ammo, Repo}