Skip to content

Commit

Permalink
Add unit test for getDefaultPluginManager()
Browse files Browse the repository at this point in the history
  • Loading branch information
youngmit committed Nov 18, 2019
1 parent c24a803 commit 4047dd4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions armi/tests/test_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,17 @@ def test_getParamRenames(self):
plugins.PluginError, ".*currently-defined parameters.*"
):
app.getParamRenames()


class TestArmi(unittest.TestCase):
"""
Tests for functions in the ARMI __init__ module.
"""

def test_getDefaultPlugMan(self):
from armi import cli
pm = armi.getDefaultPluginManager()
pm2 = armi.getDefaultPluginManager()

self.assertTrue(pm is not pm2)
self.assertIn(cli.EntryPointsPlugin, pm.get_plugins())

0 comments on commit 4047dd4

Please sign in to comment.