From 933daf8c781f7f8fddc6392799430f67c5045d16 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 8 May 2024 09:57:36 -0700 Subject: [PATCH] [Housekeeping] Improve test stability (#232) * Ensured all tests use at least the DataCase module * addressed one flakey test * More flakey tests * Consolidated Mox usage --- .../components/layouts/partials/sidebar.html.heex | 4 +++- test/pinchflat/boot/pre_job_startup_tasks_test.exs | 1 - test/pinchflat/downloading/downloading_helpers_test.exs | 3 --- .../pinchflat/downloading/media_download_worker_test.exs | 3 --- test/pinchflat/downloading/media_downloader_test.exs | 4 +--- .../downloading/media_retention_worker_test.exs | 3 --- test/pinchflat/downloading/output_path/parser_test.exs | 2 +- .../fast_indexing/fast_indexing_helpers_test.exs | 3 --- .../fast_indexing/fast_indexing_worker_test.exs | 3 --- test/pinchflat/fast_indexing/youtube_rss_test.exs | 4 +--- .../lifecycle/notifications/command_runner_test.exs | 2 +- .../notifications/source_notifications_test.exs | 3 --- .../lifecycle/user_scripts/command_runner_test.exs | 9 +++++---- test/pinchflat/media_test.exs | 3 --- test/pinchflat/metadata/metadata_file_helpers_test.exs | 4 +--- .../metadata/source_metadata_storage_worker_test.exs | 4 +--- test/pinchflat/profiles_test.exs | 3 --- .../slow_indexing/file_follower_server_test.exs | 2 +- .../media_collection_indexing_worker_test.exs | 3 --- .../slow_indexing/slow_indexing_helpers_test.exs | 3 --- test/pinchflat/sources_test.exs | 4 +--- 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 +- test/pinchflat/yt_dlp/media_collection_test.exs | 4 +--- test/pinchflat/yt_dlp/media_test.exs | 4 +--- .../controllers/media_item_controller_test.exs | 3 --- .../controllers/media_profile_controller_test.exs | 5 +---- .../controllers/settings/apprise_server_live_test.exs | 3 --- .../pinchflat_web/controllers/source_controller_test.exs | 3 --- .../controllers/sources/media_item_table_live_test.exs | 6 ++++-- test/support/conn_case.ex | 7 +++++++ test/support/data_case.ex | 6 ++++++ test/support/testing_helper_methods.ex | 7 +++++++ 39 files changed, 51 insertions(+), 83 deletions(-) diff --git a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex index 11e778c..292e803 100644 --- a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex +++ b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex @@ -18,7 +18,9 @@