You mean the same Nazi Germany that Russia-USSR teamed up with to actually start WWII?
During the summer of ‘39, the USSR was negotiating with its preferred partners France and Great Britain. However, negotiations failed and the USSR reached the Molotov-Ribbentrop Pact by August instead.
https://en.wikipedia.org/wiki/Molotov%E2%80%93Ribbentrop_Pact