Skip to content

Commit

Permalink
Add messages into asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
dplocki committed Jan 21, 2024
1 parent 18c54d9 commit 70b7afd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions e2e/fixures.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ def is_containing_only(self, expected_files_list: List[str]) -> None:
)
expected_unique_files = set(expected_files_list)

assert len(expected_unique_files) == len(files_in_destination_directory)
assert len(files_in_destination_directory & expected_unique_files) == 0
assert len(expected_unique_files) == len(
files_in_destination_directory
), f"The expected_files_list contain duplication"
assert (
len(files_in_destination_directory & expected_unique_files) == 0
), f"The files in the podcast directory is different than expected"

def path(self):
return str(self.download_destination_directory)
Expand Down

0 comments on commit 70b7afd

Please sign in to comment.