From c58c37d5c6923d33f1943948c8a0c7f3295f6d67 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Wed, 8 May 2024 09:05:13 -0700 Subject: [PATCH] Ensured all tests use at least the DataCase module --- test/pinchflat/downloading/output_path/parser_test.exs | 2 +- test/pinchflat/lifecycle/notifications/command_runner_test.exs | 2 +- test/pinchflat/lifecycle/user_scripts/command_runner_test.exs | 2 +- test/pinchflat/slow_indexing/file_follower_server_test.exs | 2 +- test/pinchflat/utils/changeset_utils_test.exs | 2 +- test/pinchflat/utils/cli_utils_test.exs | 2 +- test/pinchflat/utils/datetime_utils_test.exs | 2 +- test/pinchflat/utils/function_utils_test.exs | 2 +- test/pinchflat/utils/number_utils_test.exs | 2 +- test/pinchflat/utils/string_utils_test.exs | 2 +- test/pinchflat/utils/xml_utils_test.exs | 2 +- test/pinchflat/yt_dlp/command_runner_test.exs | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/pinchflat/downloading/output_path/parser_test.exs b/test/pinchflat/downloading/output_path/parser_test.exs index f50a497..034d423 100644 --- a/test/pinchflat/downloading/output_path/parser_test.exs +++ b/test/pinchflat/downloading/output_path/parser_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Downloading.OutputPath.ParserTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Downloading.OutputPath.Parser diff --git a/test/pinchflat/lifecycle/notifications/command_runner_test.exs b/test/pinchflat/lifecycle/notifications/command_runner_test.exs index d0969d1..8f44dd3 100644 --- a/test/pinchflat/lifecycle/notifications/command_runner_test.exs +++ b/test/pinchflat/lifecycle/notifications/command_runner_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Lifecycle.Notifications.CommandRunnerTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Lifecycle.Notifications.CommandRunner, as: Runner diff --git a/test/pinchflat/lifecycle/user_scripts/command_runner_test.exs b/test/pinchflat/lifecycle/user_scripts/command_runner_test.exs index 4b97d3d..51945f1 100644 --- a/test/pinchflat/lifecycle/user_scripts/command_runner_test.exs +++ b/test/pinchflat/lifecycle/user_scripts/command_runner_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Lifecycle.UserScripts.CommandRunnerTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.FilesystemUtils alias Pinchflat.Lifecycle.UserScripts.CommandRunner, as: Runner diff --git a/test/pinchflat/slow_indexing/file_follower_server_test.exs b/test/pinchflat/slow_indexing/file_follower_server_test.exs index eb38aaa..4e9e33a 100644 --- a/test/pinchflat/slow_indexing/file_follower_server_test.exs +++ b/test/pinchflat/slow_indexing/file_follower_server_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.SlowIndexing.FileFollowerServerTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias alias Pinchflat.Utils.FilesystemUtils alias Pinchflat.SlowIndexing.FileFollowerServer diff --git a/test/pinchflat/utils/changeset_utils_test.exs b/test/pinchflat/utils/changeset_utils_test.exs index 43bcf70..d79878e 100644 --- a/test/pinchflat/utils/changeset_utils_test.exs +++ b/test/pinchflat/utils/changeset_utils_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Utils.ChangesetUtilsTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase defmodule MockSchema do use Ecto.Schema diff --git a/test/pinchflat/utils/cli_utils_test.exs b/test/pinchflat/utils/cli_utils_test.exs index 75f92c1..cda3102 100644 --- a/test/pinchflat/utils/cli_utils_test.exs +++ b/test/pinchflat/utils/cli_utils_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Utils.CliUtilsTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.CliUtils diff --git a/test/pinchflat/utils/datetime_utils_test.exs b/test/pinchflat/utils/datetime_utils_test.exs index 4a52438..b70007c 100644 --- a/test/pinchflat/utils/datetime_utils_test.exs +++ b/test/pinchflat/utils/datetime_utils_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Utils.DatetimeUtilsTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.DatetimeUtils diff --git a/test/pinchflat/utils/function_utils_test.exs b/test/pinchflat/utils/function_utils_test.exs index 8f3e208..a22b1f6 100644 --- a/test/pinchflat/utils/function_utils_test.exs +++ b/test/pinchflat/utils/function_utils_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Utils.FunctionUtilsTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.FunctionUtils diff --git a/test/pinchflat/utils/number_utils_test.exs b/test/pinchflat/utils/number_utils_test.exs index f775f20..923efb6 100644 --- a/test/pinchflat/utils/number_utils_test.exs +++ b/test/pinchflat/utils/number_utils_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Utils.NumberUtilsTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.NumberUtils diff --git a/test/pinchflat/utils/string_utils_test.exs b/test/pinchflat/utils/string_utils_test.exs index 76ea3b6..374b293 100644 --- a/test/pinchflat/utils/string_utils_test.exs +++ b/test/pinchflat/utils/string_utils_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Utils.StringUtilsTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.StringUtils diff --git a/test/pinchflat/utils/xml_utils_test.exs b/test/pinchflat/utils/xml_utils_test.exs index 25aca92..0b41767 100644 --- a/test/pinchflat/utils/xml_utils_test.exs +++ b/test/pinchflat/utils/xml_utils_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.Utils.XmlUtilsTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.XmlUtils diff --git a/test/pinchflat/yt_dlp/command_runner_test.exs b/test/pinchflat/yt_dlp/command_runner_test.exs index 86e4551..c69d197 100644 --- a/test/pinchflat/yt_dlp/command_runner_test.exs +++ b/test/pinchflat/yt_dlp/command_runner_test.exs @@ -1,5 +1,5 @@ defmodule Pinchflat.YtDlp.CommandRunnerTest do - use ExUnit.Case, async: false + use Pinchflat.DataCase alias Pinchflat.Utils.FilesystemUtils