Skip to content

Commit 1a2379c

Browse files
committed
added unittest
1 parent 3a8b707 commit 1a2379c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/compas/test_plugins.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,18 @@ def test_dot_net_exception_without_rhino():
6161
from compas.plugins import DummyDotNetException
6262

6363
assert DotNetException == DummyDotNetException
64+
65+
66+
def test_importer_fail_silently():
67+
from compas.plugins import Importer
68+
69+
importer = Importer()
70+
71+
is_importable = importer.check_importable("compas")
72+
assert is_importable
73+
74+
is_importable = importer.check_importable("Rhino")
75+
assert not is_importable
76+
77+
is_importable = importer.check_importable("Grasshopper")
78+
assert not is_importable

0 commit comments

Comments
 (0)