From 39f2136ee85857599bee46526381399587aad90f Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 17 May 2018 20:19:12 -0400 Subject: [PATCH] Add deprecation test --- testing/test_details.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/testing/test_details.py b/testing/test_details.py index 083f3f05..179dde6b 100644 --- a/testing/test_details.py +++ b/testing/test_details.py @@ -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())