Skip to content

Commit 391c93a

Browse files
committed
add usage integration test
1 parent 2c19197 commit 391c93a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import unittest
2+
3+
4+
class TestUsage(unittest.TestCase):
5+
"""Tests for general use of library"""
6+
7+
def test_import_plugin(self):
8+
"""Test importing IFCCheck plugin in python script"""
9+
try:
10+
from bim2sim.plugins import load_plugin, Plugin
11+
plugin = load_plugin('bim2sim_ifccheck')
12+
assert issubclass(plugin, Plugin)
13+
except ImportError as err:
14+
self.fail("Unable to import plugin\nreason: %s"%(err))
15+
16+
17+
if __name__ == '__main__':
18+
unittest.main()

0 commit comments

Comments
 (0)