Exemplo n.º 1
0
def test_get_matched_faces():
    """Test that matched_faces are parsed correctly."""
    assert fb.get_matched_faces(PARSED_FACES) == MATCHED_FACES
Exemplo n.º 2
0
def test_get_matched_faces():
    """Test that matched faces are parsed correctly."""
    assert fb.get_matched_faces([MOCK_FACE]) == {MOCK_FACE['name']: 0.58}
Exemplo n.º 3
0
def test_get_matched_faces():
    """Test that matched_faces are parsed correctly."""
    assert fb.get_matched_faces(PARSED_FACES) == MATCHED_FACES
Exemplo n.º 4
0
def test_parse_faces():
    """Test parsing of raw face data, and generation of matched_faces."""
    parsed_faces = fb.parse_faces(MOCK_JSON['faces'])
    assert parsed_faces == PARSED_FACES
    assert fb.get_matched_faces(parsed_faces) == MATCHED_FACES
Exemplo n.º 5
0
def test_get_matched_faces():
    """Test that matched faces are parsed correctly."""
    assert fb.get_matched_faces([MOCK_FACE]) == {MOCK_FACE['name']: 0.58}