Skip to content

Commit

Permalink
Changed wording when torrent succesfully generated
Browse files Browse the repository at this point in the history
  • Loading branch information
moleculekayak committed Aug 21, 2024
1 parent b1507e4 commit b05a5e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def scan_torrent_directory(
p.already_exists.print("Torrent was previously generated.")
else:
p.generated.print(
f"Found with source '{new_tracker.site_shortname()}' and generated as '{new_torrent_filepath}'."
f"Torrent can be cross-seeded to {new_tracker.site_shortname()}; succesfully generated as '{new_torrent_filepath}'."
)
except TorrentDecodingError as e:
p.error.print(str(e))
Expand Down
4 changes: 2 additions & 2 deletions tests/test_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test_lists_generated_torrents(self, capsys, red_api, ops_api):
captured = capsys.readouterr()

assert (
f"{Fore.LIGHTGREEN_EX}Found with source 'OPS' and generated as '/tmp/output/OPS/foo [OPS].torrent'.{Fore.RESET}"
f"{Fore.LIGHTGREEN_EX}Torrent can be cross-seeded to OPS; succesfully generated as '/tmp/output/OPS/foo [OPS].torrent'.{Fore.RESET}"
in captured.out
)
assert f"{Fore.LIGHTGREEN_EX}Generated for cross-seeding{Fore.RESET}: 1" in captured.out
Expand Down Expand Up @@ -266,7 +266,7 @@ def test_reports_progress_for_mix_of_torrents(self, capsys, red_api, ops_api):
assert "Analyzed 3 local torrents" in captured.out

assert (
f"{Fore.LIGHTGREEN_EX}Found with source 'RED' and generated as '/tmp/output/RED/foo [RED].torrent'.{Fore.RESET}"
f"{Fore.LIGHTGREEN_EX}Torrent can be cross-seeded to RED; succesfully generated as '/tmp/output/RED/foo [RED].torrent'.{Fore.RESET}"
in captured.out
)
assert f"{Fore.LIGHTGREEN_EX}Generated for cross-seeding{Fore.RESET}: 1" in captured.out
Expand Down

0 comments on commit b05a5e3

Please sign in to comment.