fair-weather friend
US /ˈferˌweð.ər ˈfrend/
UK /ˈferˌweð.ər ˈfrend/

1.
ami de beau temps, ami opportuniste
a person who is only a friend when things are going well and abandons you when difficulties arise
:
•
I thought he was my friend, but he turned out to be a fair-weather friend when I lost my job.
Je pensais qu'il était mon ami, mais il s'est avéré être un ami de beau temps quand j'ai perdu mon emploi.
•
Don't rely on him; he's just a fair-weather friend.
Ne compte pas sur lui ; c'est juste un ami de beau temps.