def test_detect_web_with_geo(capsys):
    file_name = os.path.join(os.path.dirname(__file__), 'resources/city.jpg')
    detect.web_entities_include_geo_results(file_name)
    out, _ = capsys.readouterr()
    out = out.lower()
    assert ('zepra' in out or 'electra tower' in out or 'tel aviv' in out
            or 'jaffa' in out)
def test_detect_web_with_geo(capsys):
    file_name = os.path.join(
        os.path.dirname(__file__),
        'resources/city.jpg')
    detect.web_entities_include_geo_results(file_name)
    out, _ = capsys.readouterr()
    assert 'Zepra' in out
def test_detect_web_with_geo(capsys):
    file_name = os.path.join(
        os.path.dirname(__file__),
        'resources/city.jpg')
    detect.web_entities_include_geo_results(file_name)
    out, _ = capsys.readouterr()
    out = out.lower()
    assert 'description' in out
Beispiel #4
0
 def run_sample():
     detect.web_entities_include_geo_results(file_name)
def test_detect_web_with_geo(capsys):
    file_name = os.path.join(os.path.dirname(__file__), 'resources/city.jpg')
    detect.web_entities_include_geo_results(file_name)
    out, _ = capsys.readouterr()
    assert 'Zepra' in out or 'Electra Tower' in out