Skip to content

Commit

Permalink
add test for opml_sources helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
robs committed Dec 19, 2024
1 parent 51efc6d commit 4cf7d35
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/pinchflat/podcasts/podcast_helpers_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ defmodule Pinchflat.Podcasts.PodcastHelpersTest do

alias Pinchflat.Podcasts.PodcastHelpers

describe "opml_sources" do
test "returns sources not marked for deletion" do
source = source_fixture()
source_fixture(%{marked_for_deletion_at: DateTime.utc_now()})
assert [found_source] = PodcastHelpers.opml_sources()
assert found_source.custom_name == source.custom_name
assert found_source.uuid == source.uuid
end
end

describe "persisted_media_items_for/2" do
test "returns media items with files that exist on-disk" do
source = source_fixture()
Expand Down

0 comments on commit 4cf7d35

Please sign in to comment.