Skip to content

Commit 8573118

Browse files
author
Tyler Goodlet
committed
Document the manager module
1 parent b093f9e commit 8573118

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

testing/test_pluginmanager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
``PluginManager`` unit and public API testing.
3+
"""
14
import pytest
25
import types
36
import sys
@@ -12,6 +15,7 @@
1215

1316

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

2125

2226
def test_pm(pm):
27+
"""Basic registration with objects"""
2328
class A(object):
2429
pass
2530

0 commit comments

Comments
 (0)