def METHOD_NAME(app, entities):
    """Tests that a repost notification is created on repost  correctly"""
    with app.app_context():
        db = get_db()
    populate_mock_db(db, entities)
    repost_entities = {
        "reposts": [
            {
                "user_id": 1,
                "repost_item_id": 100,
                "repost_type": RepostType.track,
                "is_current": False,
                "is_delete": False,
            },
        ]
    }
    save_entities = {
        "saves": [
            {
                "user_id": 3,
                "save_item_id": 100,
                "save_type": SaveType.track,
                "is_save_of_repost": True,
            },
        ],
    }
    populate_mock_db(db, repost_entities)
    populate_mock_db(db, save_entities)
    with db.scoped_session() as session:
        notifications: List[Notification] = (
            session.query(Notification)
            .filter(Notification.type == "save_of_repost")
            .all()
        )
        assert len(notifications) == 0