X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=src%2Fpyutils%2Funittest_utils.py;h=adef4e39307b7b58fd96d1347e04e91273ad96a3;hb=HEAD;hp=abbc09c201c2f44ac57410aaf5991f9f36d82fa0;hpb=0c52f482d9e7646d6a01f40bde20784647b13a49;p=pyutils.git diff --git a/src/pyutils/unittest_utils.py b/src/pyutils/unittest_utils.py index abbc09c..adef4e3 100644 --- a/src/pyutils/unittest_utils.py +++ b/src/pyutils/unittest_utils.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# © Copyright 2021-2022, Scott Gasch +# © Copyright 2021-2023, Scott Gasch """Helpers for unittests. @@ -270,7 +270,7 @@ Here is the current, full db perf timing distribution: return wrapper_perf_monitor -def check_all_methods_for_perf_regressions(prefix="test_"): +def check_all_methods_for_perf_regressions(prefix: str = "test_"): """This decorator is meant to apply to classes that subclass from :class:`unittest.TestCase` and, when applied, has the affect of decorating each method that matches the `prefix` given with the