548ccc5e94
add auto-generated tests that check that a given module can be imported, if all prerequisites are followed. see #641
13 lines
212 B
Python
13 lines
212 B
Python
import pytest
|
|
|
|
pytest.importorskip("suntime")
|
|
|
|
pytest.importorskip("requests")
|
|
|
|
pytest.importorskip("dateutil.tz")
|
|
|
|
pytest.importorskip("datetime")
|
|
|
|
def test_load_module():
|
|
__import__("modules.contrib.sun")
|
|
|