Verify how we create Statistic objects from Errors.
()
| 59 | |
| 60 | |
| 61 | def 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 | |
| 70 | def test_statistic_increment(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…