Skip to content

Commit

Permalink
Add deprecation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Goodlet committed May 21, 2018
1 parent 49968c2 commit 39f2136
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testing/test_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,15 @@ def test_result_deprecated():
r = _Result(10, None)
with pytest.deprecated_call():
assert r.result == 10


def test_implprefix_deprecated():
with pytest.deprecated_call():
pm = PluginManager('blah', implprefix='blah_')

class Plugin:
def blah_myhook(self, arg1):
return arg1

with pytest.deprecated_call():
pm.register(Plugin())

0 comments on commit 39f2136

Please sign in to comment.