Skip to content

Commit

Permalink
Document the manager module
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Goodlet committed May 22, 2018
1 parent b093f9e commit 8573118
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testing/test_pluginmanager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
``PluginManager`` unit and public API testing.
"""
import pytest
import types
import sys
Expand All @@ -12,6 +15,7 @@


def test_plugin_double_register(pm):
"""Registering the same plugin more then once isn't allowed"""
pm.register(42, name="abc")
with pytest.raises(ValueError):
pm.register(42, name="abc")
Expand All @@ -20,6 +24,7 @@ def test_plugin_double_register(pm):


def test_pm(pm):
"""Basic registration with objects"""
class A(object):
pass

Expand Down

0 comments on commit 8573118

Please sign in to comment.