Skip to content

Commit

Permalink
[py-tx] finalized updates for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mackay-Fisher committed Nov 6, 2024
1 parent a193b7a commit 6d2f20e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python-threatexchange/threatexchange/cli/hash_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def execute(self, settings: CLISettings) -> None:
hash_str = hasher.hash_from_file(file)
if hash_str:
print(hasher.get_name(), hash_str)
return
return

if not issubclass(self.content_type, PhotoContent):
raise CommandError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def assert_cli_output(
if not isinstance(expected_output, dict):
expected_output = dict(enumerate(expected_output))
for line, expected_line_output in expected_output.items():
print(line,expected_line_output)
if line < 0:
assert line >= -len(lines)
else:
Expand Down

0 comments on commit 6d2f20e

Please sign in to comment.