(code, error_count)
| 44 | 'empty_tree', |
| 45 | )) |
| 46 | def test_mutable_defaults(code, error_count): |
| 47 | tree = ast.parse(code) |
| 48 | assert ( |
| 49 | len(list(MutableDefaultChecker(tree, 'filename').run())) == |
| 50 | error_count |
| 51 | ) |
| 52 | |
| 53 | |
| 54 | @pytest.mark.parametrize('code,location_list', [ |
nothing calls this directly
no test coverage detected