Also, as far as I understand, while Hitler never thought the alliance would last, it seems like Stalin fully bought into it, to the point of dismissing the obvious signs that Germany was getting ready to attack.
Specifically, Stalin never thought Hitler would attack while Germany was still at war with Britain.
The fact that tiny Finland had fought the Soviet Union to a standstill the year before also did wonders in making the Germans think that the USSR was a paper tiger militarily, notwithstanding the VAST differences in types of war.