tests/views: Prevent code execution when importing module
tests/views: Prevent code execution when importing module

This can lead to nasty side effects otherwise.

SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui,SoftwareHeritage/swh-web-ui