MCPcopy
hub / github.com/PyCQA/flake8 / test_statistic_creation

Function test_statistic_creation

tests/unit/test_statistics.py:61–67  ·  view source on GitHub ↗

Verify how we create Statistic objects from Errors.

()

Source from the content-addressed store, hash-verified

59
60
61def test_statistic_creation():
62 """Verify how we create Statistic objects from Errors."""
63 stat = stats.Statistic.create_from(make_error())
64 assert stat.error_code == DEFAULT_ERROR_CODE
65 assert stat.message == DEFAULT_TEXT
66 assert stat.filename == DEFAULT_FILENAME
67 assert stat.count == 0
68
69
70def test_statistic_increment():

Callers

nothing calls this directly

Calls 2

make_errorFunction · 0.85
create_fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…