def METHOD_NAME(user_factory, post_factory):
    user1 = user_factory()
    user2 = user_factory()
    db.session.add_all([user1, user2])
    db.session.flush()
    assert user1.liked_post_count == 0
    assert user1.disliked_post_count == 0
    post1 = post_factory()
    post2 = post_factory()
    db.session.add_all(
        [
            model.PostScore(
                post=post1, time=datetime.utcnow(), user=user1, score=1
            ),
            model.PostScore(
                post=post2, time=datetime.utcnow(), user=user2, score=1
            ),
        ]
    )
    db.session.flush()
    db.session.refresh(user1)
    assert user1.liked_post_count == 1
    assert user1.disliked_post_count == 0