Skip to content

Commit 39f2136

Browse files
author
Tyler Goodlet
committed
Add deprecation test
1 parent 49968c2 commit 39f2136

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

testing/test_details.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,15 @@ def test_result_deprecated():
124124
r = _Result(10, None)
125125
with pytest.deprecated_call():
126126
assert r.result == 10
127+
128+
129+
def test_implprefix_deprecated():
130+
with pytest.deprecated_call():
131+
pm = PluginManager('blah', implprefix='blah_')
132+
133+
class Plugin:
134+
def blah_myhook(self, arg1):
135+
return arg1
136+
137+
with pytest.deprecated_call():
138+
pm.register(Plugin())

0 commit comments

Comments
 (0)