Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_file_not_found():
with pytest.raises(FileNotFoundError):
lept.Pix.open("does_not_exist1")
def test_clean_bg(resources):
pix = lept.Pix.open(resources / 'congress.jpg')
imbg = pix.clean_background_to_white()