files updated, looking good

This commit is contained in:
jbannon 2022-07-05 22:47:23 +00:00
parent 6b8fb9b440
commit af03afc8f3
9 changed files with 13 additions and 11 deletions

View file

@ -10,7 +10,7 @@ def assert_transaction_log_matches(
output_directory: str, output_directory: str,
transaction_log: FileHandlerTransactionLog, transaction_log: FileHandlerTransactionLog,
transaction_log_summary_file_name: str, transaction_log_summary_file_name: str,
regenerate_transaction_log: bool = True, regenerate_transaction_log: bool = False,
): ):
""" """
Parameters Parameters
@ -23,7 +23,7 @@ def assert_transaction_log_matches(
Name if the transaction log summary to compare. Name if the transaction log summary to compare.
Lives in tests/e2e/resources/transaction_log_summaries Lives in tests/e2e/resources/transaction_log_summaries
regenerate_transaction_log regenerate_transaction_log
USE WITH CAUTION USE WITH CAUTION - MANUALLY INSPECT CHANGED FILES TO ENSURE THEY LOOK GOOD!
Updates the file with the input transaction log. Should only be used to update Updates the file with the input transaction log. Should only be used to update
tests after an expected change is made. tests after an expected change is made.
""" """
@ -33,7 +33,9 @@ def assert_transaction_log_matches(
# Write the expected summary file if regenerate is True # Write the expected summary file if regenerate is True
if regenerate_transaction_log: if regenerate_transaction_log:
with open(transaction_log_path, "w", encoding="utf-8") as summary_file: with open(transaction_log_path, "w", encoding="utf-8") as summary_file:
summary_file.write(summary) summary_file.write(
transaction_log.to_output_message(output_directory="{output_directory}")
)
# Read the expected summary file # Read the expected summary file
with open(transaction_log_path, "r", encoding="utf-8") as summary_file: with open(transaction_log_path, "r", encoding="utf-8") as summary_file:

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmpw98_9etl' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
.ytdl-sub-jb-download-archive.json .ytdl-sub-jb-download-archive.json
j_b/[2021] Baby Santana's Dorian Groove/01 - Baby Santana's Dorian Groove.mp3 j_b/[2021] Baby Santana's Dorian Groove/01 - Baby Santana's Dorian Groove.mp3

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmps8izxi_f' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
.ytdl-sub-pz-download-archive.json .ytdl-sub-pz-download-archive.json
Season 2010/s2010.e0813 - Oblivion Mod 'Falcor' p.1-thumb.jpg Season 2010/s2010.e0813 - Oblivion Mod 'Falcor' p.1-thumb.jpg

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmptwnuinwm' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
.ytdl-sub-pz-download-archive.json .ytdl-sub-pz-download-archive.json
fanart.jpg fanart.jpg

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmprvao2i5r' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
.ytdl-sub-pz-download-archive.json .ytdl-sub-pz-download-archive.json
Season 2018/s2018.e1029 - Jesse's Minecraft Server _ Teaser Trailer-thumb.jpg Season 2018/s2018.e1029 - Jesse's Minecraft Server _ Teaser Trailer-thumb.jpg

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmpjr9rb2hf' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
JMC - Jesse's Minecraft Server-thumb.jpg JMC - Jesse's Minecraft Server-thumb.jpg
JMC - Jesse's Minecraft Server.mkv JMC - Jesse's Minecraft Server.mkv

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmpty4f_r8j' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
.ytdl-sub-jmc-download-archive.json .ytdl-sub-jmc-download-archive.json
JMC - Jesse's Minecraft Server [Trailer - Feb.1]-thumb.jpg JMC - Jesse's Minecraft Server [Trailer - Feb.1]-thumb.jpg

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmpjhb4fhk6' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
Project Zombie - 1-6.Intro.mp4 Project Zombie - 1-6.Intro.mp4
0:00 - 0:10 0:00 - 0:10

View file

@ -1,4 +1,4 @@
Files created in '/tmp/tmptz1msudg' Files created in '{output_directory}'
---------------------------------------- ----------------------------------------
JMC - Oblivion Mod 'Falcor' p.1-thumb.jpg JMC - Oblivion Mod 'Falcor' p.1-thumb.jpg
JMC - Oblivion Mod 'Falcor' p.1.mp4 JMC - Oblivion Mod 'Falcor' p.1.mp4