Skip to content

Commit d8181be

Browse files
committed
Add simple tests to ensure plugins are imported
1 parent 90bca57 commit d8181be

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mbuild/tests/test_plugins.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
from mbuild.tests.base_test import BaseTest
4+
5+
6+
class TestPlugins(BaseTest):
7+
def test_basic_import(self):
8+
import mbuild.recipes
9+
10+
@pytest.mark.parametrize(
11+
'recipe_name',
12+
['Monolayer', 'Polymer', 'SilicaInterface', 'TiledCompound'],
13+
)
14+
def test_recipes_contents(self, recipe_name):
15+
import mbuild.recipes
16+
recipe_name in dir(mbuild.recipes)

0 commit comments

Comments
 (0)