diff --git a/src/tests/test_cases/test.py b/src/tests/test_cases/test.py index 8154c960..c837abc6 100644 --- a/src/tests/test_cases/test.py +++ b/src/tests/test_cases/test.py @@ -1,5 +1,6 @@ # No docstring, so we can test D100 -from functools import wraps +import functools +from functools import cached_property, wraps import os from .expected import Expectation from typing import overload @@ -47,6 +48,16 @@ def foo(self): """The foo of the thing, which isn't in imperitive mood.""" return "hello" + @cached_property + def bar(self): + """The bar of the thing, which also isn't in imperitive mood.""" + return "bye" + + @functools.cached_property + def foobar(self): + """The foobar of the thing; not in imperitive mood.""" + return "hello again" + @expect('D102: Missing docstring in public method') def __new__(self=None): pass