Skip to content

Commit

Permalink
MacOSX Test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Dec 7, 2024
1 parent 586c611 commit 645ec51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_attach_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,13 @@ def test_attach_file():
assert len(response) > 0

# Test the inability to get our file size
with mock.patch('os.path.getsize', side_effect=(True, OSError)):
with mock.patch('os.path.getsize', side_effect=(0, OSError)):
assert len(response) == 0

with mock.patch('os.path.isfile', return_value=True):
with mock.patch('os.path.getsize', side_effect=(0, OSError)):
assert len(response) == 0


def test_attach_file_base64():
"""
Expand Down

0 comments on commit 645ec51

Please sign in to comment.