Upvote:6
As you travel from Ukraine to France, and testing is required for that travel, get tested, even when the airline is not bothered about checking it.
You do not test for the airline but to protect the people in the country you go to.
And be aware that testing requirements can change any moment.
(We had a question recently about travel from the UK via Switzerland to France where the conclusion was that keeping to the UK to France rules made the most sense, my personal interpretation.)
PS. If testing had been required for Germany but not for France, I would still have suggested to get tested. I might even go as far as advising a self test if you do not need an official test, just to be sure you are covid free while traveling.