We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c19197 commit 391c93aCopy full SHA for 391c93a
bim2sim/plugins/PluginIFCCheck/test/integration/test_usage.py
@@ -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