MCPcopy Create free account
hub / github.com/ebeweber/flake8-mutable / test_mutable_defaults

Function test_mutable_defaults

tests/mutable_defaults_test.py:46–51  ·  view source on GitHub ↗
(code, error_count)

Source from the content-addressed store, hash-verified

44 'empty_tree',
45))
46def 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', [

Callers

nothing calls this directly

Calls 2

runMethod · 0.80

Tested by

no test coverage detected