()
| 70 | |
| 71 | |
| 72 | def test_function_check_metadata(): |
| 73 | mod = Module() |
| 74 | |
| 75 | @mod.object_type |
| 76 | class Foo: |
| 77 | @mod.function |
| 78 | @mod.check |
| 79 | def lint(self): |
| 80 | """Check function.""" |
| 81 | |
| 82 | fn = mod.get_object("Foo").functions["lint"] |
| 83 | assert fn.check is True |
| 84 | |
| 85 | |
| 86 | def test_function_check_default_false(): |
nothing calls this directly
no test coverage detected