def test_detect_web(capsys): file_name = os.path.join( os.path.dirname(__file__), 'resources/landmark.jpg') detect.detect_web(file_name) out, _ = capsys.readouterr() assert 'Description: Palace of Fine Arts Theatre' in out
def test_detect_web(capsys): file_name = os.path.join( os.path.dirname(__file__), 'resources/landmark.jpg') detect.detect_web(file_name) out, _ = capsys.readouterr() assert 'best guess label: palace of fine arts' in out.lower()
def run_sample(): detect.detect_web(file_name)