[tests] add somewhat experimental import-time tests

add auto-generated tests that check that a given module can be imported,
if all prerequisites are followed.

see #641
This commit is contained in:
tobi-wan-kenobi 2020-07-20 13:56:18 +02:00
parent 9be1331e1b
commit 548ccc5e94
94 changed files with 624 additions and 2 deletions

View file

@ -65,3 +65,8 @@ def test_update_calls_load_song(mocker, mpd_module):
def test_default_layout(mpd_module):
assert mpd_module._layout == "mpd.prev mpd.main mpd.next mpd.shuffle mpd.repeat"
def test_load_module():
__import__("modules.contrib.mpd")