tests.tools_deprecate_tests module#
Tests for deprecation tools.
- class tests.tools_deprecate_tests.DecoratorFullNameTestCase(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,DeprecationTestCase
Class with methods deprecated.
- abstract_class = False#
- class tests.tools_deprecate_tests.DeprecatedMethodClass[source]#
Bases:
object
Class with methods deprecated.
- deprecated_instance_method_and_arg(foo, bah='[deprecated name of foo]')[source]#
Deprecated.
Deprecated instance method with deprecated parameters.
- deprecated_instance_method_and_arg2(foo, bah='[deprecated name of foo]')[source]#
Deprecated.
Deprecating decorators in reverse order.
- deprecated_instance_method_arg(foo=None, bah='[deprecated name of foo]')[source]#
Instance method with deprecated parameters.
- deprecated_instance_method_args(foo, foo2, foo3=None, foo4=None, bah4='[deprecated name of foo4]', bah3='[deprecated name of foo3]', bah2='[deprecated name of foo2]', bah='[deprecated name of foo]')[source]#
Method with many decorators to verify wrapping depth formula.
- class tests.tools_deprecate_tests.DeprecatorTestCase(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,DeprecationTestCase
Test cases for deprecation tools.
- abstract_class = False#
- test_deprecated_instance_method_and_arg()[source]#
Test @deprecate_arg and @deprecated with instance methods.
- test_deprecated_instance_method_and_arg2()[source]#
Test @deprecated and @deprecate_arg with instance methods.
- test_deprecated_instance_method_args()[source]#
Test @deprecate_arg with instance methods and two args.
- test_deprecated_instance_method_args_multi()[source]#
Test @deprecated_args with instance methods and two args.
- test_deprecated_instance_method_zero_arg()[source]#
Test @deprecate_arg with classes, without arguments.
- tests.tools_deprecate_tests.deprecated_all2(foo)[source]#
Test remove_last_args with one arg removed.
- tests.tools_deprecate_tests.deprecated_func2_docstring(foo=None)[source]#
DEPRECATED, don’t use this. Deprecated function.
- tests.tools_deprecate_tests.deprecated_func_arg(foo=None, bah='[deprecated name of foo]')[source]#
Deprecated arg ‘bah’.
- tests.tools_deprecate_tests.deprecated_func_arg2(foo=None, bah='[deprecated name of foo]')[source]#
Test deprecated_args with one rename.
- tests.tools_deprecate_tests.deprecated_func_arg3(foo=None, bah='[deprecated name of foo]', silent=NotImplemented, loud=NotImplemented, old=NotImplemented)[source]#
Test deprecated_args with three drops and one rename.
- tests.tools_deprecate_tests.deprecated_func_bad_args(self)[source]#
Deprecated.
Deprecated function with arg ‘self’.
- tests.tools_deprecate_tests.deprecated_func_docstring(foo=None)[source]#
DEPRECATED. Deprecated function.
- tests.tools_deprecate_tests.deprecated_func_docstring_arg(foo=None)[source]#
Deprecated.
- Parameters:
foo – Foo. DEPRECATED.
- tests.tools_deprecate_tests.deprecated_func_docstring_arg2(foo=None)[source]#
DEPRECATED.
- Parameters:
foo – Foo. DEPRECATED.