Russia was Germany's largest trading partner while Germany was invading France and bombing Britain.
The USSR had helped the Nazis develop their weapons and train military in hiding before they came out with their new armed forces; they WERE partners.