Skip to content

Commit

Permalink
Changing Model.compute_pdq(io.BytesIO(image_content)) to `result = …
Browse files Browse the repository at this point in the history
…Model().compute_pdq(io.BytesIO(image_content))` in test_image.py
  • Loading branch information
ahmednasserswe committed Nov 9, 2023
1 parent 1797637 commit 295e0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/model/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_compute_pdq(self, mock_pdq_hasher):
image_content = file.read()
mock_hasher_instance = mock_pdq_hasher.return_value
mock_hasher_instance.fromBufferedImage.return_value.getHash.return_value.dumpBitsFlat.return_value = '1001'
result = Model.compute_pdq(io.BytesIO(image_content))
result = Model().compute_pdq(io.BytesIO(image_content))
self.assertEqual(result, '0011100000111011010110100001001110001011110100100010101011010111010110101010000111001010111000001010111111110000000101110010000011111110111110100100011111010010110110101111101100111001000000010010100101010111110001001101101011000110001000001110010000111100')

@patch("urllib.request.urlopen")
Expand Down

0 comments on commit 295e0b8

Please sign in to comment.