def test_safe_search(capsys): file_name = os.path.join( os.path.dirname(__file__), 'resources/wakeupcat.jpg') detect.detect_safe_search(file_name) out, _ = capsys.readouterr() assert 'Likelihood.VERY_LIKELY' in out
def test_safe_search(capsys): file_name = os.path.join(os.path.dirname(__file__), 'resources/wakeupcat.jpg') detect.detect_safe_search(file_name) out, _ = capsys.readouterr() assert 'VERY_LIKELY' in out assert 'racy: ' in out
def test_safe_search(cloud_config, capsys): file_name = os.path.join( os.path.dirname(__file__), 'resources/wakeupcat.jpg') detect.detect_safe_search(file_name) out, _ = capsys.readouterr() assert 'Likelihood.VERY_LIKELY' in out