diff --git a/python/grass/pygrass/modules/interface/testsuite/test_modules_with_metaclass.py b/python/grass/pygrass/modules/interface/testsuite/test_modules_with_metaclass.py index 14ffe0bb959..fe3e672b9b9 100644 --- a/python/grass/pygrass/modules/interface/testsuite/test_modules_with_metaclass.py +++ b/python/grass/pygrass/modules/interface/testsuite/test_modules_with_metaclass.py @@ -4,7 +4,9 @@ @author: pietro """ +# ruff: noqa: LOG015 from fnmatch import fnmatch +from logging import warning from grass.gunittest.case import TestCase from grass.gunittest.main import test @@ -20,6 +22,7 @@ class ModulesMeta(type): def __new__(cls, name, bases, dict): + warning("In __new__ of ModulesMeta") print("In __new__ of ModulesMeta") def gen_test(cmd): @@ -35,6 +38,7 @@ def test(self): ] for cmd in cmds: test_name = "test__%s" % cmd.replace(".", "_") + warning("cmd is: %s, test_name: %s", cmd, test_name) print(f"cmd is: {cmd}, test_name: {test_name}") dict[test_name] = gen_test(cmd) return type.__new__(cls, name, bases, dict) @@ -45,4 +49,5 @@ class TestModules(TestCase, metaclass=ModulesMeta): if __name__ == "__main__": + warning("Starting test of %s", __file__) test()