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
Example #2
0
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
Example #3
0
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