Skip to content

Commit

Permalink
no dls in migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbannon committed Oct 3, 2024
1 parent 6410ecd commit 7c20f3f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 167 deletions.
2 changes: 2 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def _write_entries_to_working_dir(*args, **kwargs) -> List[Dict]:
# Second TV URL or second soundcloud URL, which downloads first
is_second_url = "2" in kwargs["url"] or kwargs["url"].endswith("/albums")

if num_urls == 0:
return []
if num_urls == 1 or (is_second_url and num_urls > 1):
return [
mock_entry_dict_factory(
Expand Down
4 changes: 1 addition & 3 deletions tests/integration/plugins/test_output_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ def test_download_archive_migration(

with mock_download_collection_entries(
is_youtube_channel=False,
num_urls=1,
is_extracted_audio=False,
is_dry_run=False,
num_urls=0,
):
transaction_log = subscription.download(dry_run=False)

Expand Down
2 changes: 1 addition & 1 deletion tests/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import shutil
from pathlib import Path

REGENERATE_FIXTURES: bool = False
REGENERATE_FIXTURES: bool = True

RESOURCE_PATH: Path = Path("tests") / "resources"
_FILE_FIXTURE_PATH: Path = RESOURCE_PATH / "file_fixtures"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
".ytdl-sub-JMC-migrated-download-archive.json": "66de2cc62b86fb0cdae8a2085a35412b",
".ytdl-sub-JMC-migrated-download-archive.json": "456d8882fc5e35d74f19b386d1d9a059",
"Season 2020/s2020.e000001 - Mock Entry 20-3-thumb.jpg": "e80c508c4818454300133fe1dc1a9cd7",
"Season 2020/s2020.e000001 - Mock Entry 20-3.info.json": "INFO_JSON",
"Season 2020/s2020.e000001 - Mock Entry 20-3.mp4": "7d2ee7fe8003ea63ece37dd2a441c123",
Expand All @@ -12,25 +12,9 @@
"Season 2020/s2020.e000003 - Mock Entry 20-1.info.json": "INFO_JSON",
"Season 2020/s2020.e000003 - Mock Entry 20-1.mp4": "a16741d4fbf657d1de4c50493db14062",
"Season 2020/s2020.e000003 - Mock Entry 20-1.nfo": "837a61dca11bbe1874ea07cb8ef8a7c9",
"Season 2020/s2020.e000005 - Mock Entry 20-1-thumb.jpg": "e80c508c4818454300133fe1dc1a9cd7",
"Season 2020/s2020.e000005 - Mock Entry 20-1.info.json": "INFO_JSON",
"Season 2020/s2020.e000005 - Mock Entry 20-1.mp4": "619fe168c38daad37bf1e3e5e063f5c9",
"Season 2020/s2020.e000005 - Mock Entry 20-1.nfo": "1d136ac5b5debe51ea4f9bfeeb5a7b2a",
"Season 2020/s2020.e000005 - Mock Entry 20-2-thumb.jpg": "e80c508c4818454300133fe1dc1a9cd7",
"Season 2020/s2020.e000005 - Mock Entry 20-2.info.json": "INFO_JSON",
"Season 2020/s2020.e000005 - Mock Entry 20-2.mp4": "724f018060e3bb74a2cec6f9acb23663",
"Season 2020/s2020.e000005 - Mock Entry 20-2.nfo": "69a1dc9d7b2517a01cfb35c85872fac0",
"Season 2020/s2020.e000005 - Mock Entry 20-3-thumb.jpg": "e80c508c4818454300133fe1dc1a9cd7",
"Season 2020/s2020.e000005 - Mock Entry 20-3.info.json": "INFO_JSON",
"Season 2020/s2020.e000005 - Mock Entry 20-3.mp4": "b48150a340c3454824042ae283c5195a",
"Season 2020/s2020.e000005 - Mock Entry 20-3.nfo": "8cd9c68536a56bc1c877f6e6203e6bfd",
"Season 2021/s2021.e000004 - Mock Entry 21-1-thumb.jpg": "e80c508c4818454300133fe1dc1a9cd7",
"Season 2021/s2021.e000004 - Mock Entry 21-1.info.json": "INFO_JSON",
"Season 2021/s2021.e000004 - Mock Entry 21-1.mp4": "7433153952b069a5674e2a3ed529b49b",
"Season 2021/s2021.e000004 - Mock Entry 21-1.nfo": "8ee3845c514a411425b7e9198666b61c",
"Season 2021/s2021.e000005 - Mock Entry 21-1-thumb.jpg": "e80c508c4818454300133fe1dc1a9cd7",
"Season 2021/s2021.e000005 - Mock Entry 21-1.info.json": "INFO_JSON",
"Season 2021/s2021.e000005 - Mock Entry 21-1.mp4": "a6fd7345d046f697c2e71e378d328a8c",
"Season 2021/s2021.e000005 - Mock Entry 21-1.nfo": "f5ee75ac3d6f28f6bb84bbf2d4f638aa",
"tvshow.nfo": "cccca1086b41af04d8ea004b1aa250e8"
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,124 +2,6 @@ Files created:
----------------------------------------
{output_directory}
.ytdl-sub-JMC-migrated-download-archive.json
{output_directory}/Season 2020
s2020.e000005 - Mock Entry 20-1-thumb.jpg
s2020.e000005 - Mock Entry 20-1.info.json
s2020.e000005 - Mock Entry 20-1.mp4
Video Tags:
contentRating: TV-14
date: 2020-08-08
episode_id: 5
genre: ytdl-sub
show: JMC
synopsis:
https://20-1.com

The Description
title: 2020-08-08 - Mock Entry 20-1
year: 2020
s2020.e000005 - Mock Entry 20-1.nfo
NFO tags:
episodedetails:
aired: 2020-08-08
episode: 5
genre: ytdl-sub
mpaa: TV-14
plot:
https://20-1.com

The Description
season: 2020
title: 2020-08-08 - Mock Entry 20-1
year: 2020
s2020.e000005 - Mock Entry 20-2-thumb.jpg
s2020.e000005 - Mock Entry 20-2.info.json
s2020.e000005 - Mock Entry 20-2.mp4
Video Tags:
contentRating: TV-14
date: 2020-08-08
episode_id: 5
genre: ytdl-sub
show: JMC
synopsis:
https://20-2.com

The Description
title: 2020-08-08 - Mock Entry 20-2
year: 2020
s2020.e000005 - Mock Entry 20-2.nfo
NFO tags:
episodedetails:
aired: 2020-08-08
episode: 5
genre: ytdl-sub
mpaa: TV-14
plot:
https://20-2.com

The Description
season: 2020
title: 2020-08-08 - Mock Entry 20-2
year: 2020
s2020.e000005 - Mock Entry 20-3-thumb.jpg
s2020.e000005 - Mock Entry 20-3.info.json
s2020.e000005 - Mock Entry 20-3.mp4
Video Tags:
contentRating: TV-14
date: 2020-08-07
episode_id: 5
genre: ytdl-sub
show: JMC
synopsis:
https://20-3.com

The Description
title: 2020-08-07 - Mock Entry 20-3
year: 2020
s2020.e000005 - Mock Entry 20-3.nfo
NFO tags:
episodedetails:
aired: 2020-08-07
episode: 5
genre: ytdl-sub
mpaa: TV-14
plot:
https://20-3.com

The Description
season: 2020
title: 2020-08-07 - Mock Entry 20-3
year: 2020
{output_directory}/Season 2021
s2021.e000005 - Mock Entry 21-1-thumb.jpg
s2021.e000005 - Mock Entry 21-1.info.json
s2021.e000005 - Mock Entry 21-1.mp4
Video Tags:
contentRating: TV-14
date: 2021-08-08
episode_id: 5
genre: ytdl-sub
show: JMC
synopsis:
https://21-1.com

The Description
title: 2021-08-08 - Mock Entry 21-1
year: 2021
s2021.e000005 - Mock Entry 21-1.nfo
NFO tags:
episodedetails:
aired: 2021-08-08
episode: 5
genre: ytdl-sub
mpaa: TV-14
plot:
https://21-1.com

The Description
season: 2021
title: 2021-08-08 - Mock Entry 21-1
year: 2021

Files removed:
----------------------------------------
Expand Down

This file was deleted.

0 comments on commit 7c20f3f

Please sign in to comment.