Test format_duplicate_message.
(self, cache)
| 105 | assert stats.total_variables == 1 |
| 106 | |
| 107 | def test_format_duplicate_message(self, cache): |
| 108 | """Test format_duplicate_message.""" |
| 109 | cache.put("sqrt", {"x": 18}, 4.2426) |
| 110 | msg = cache.format_duplicate_message("sqrt", {"x": 18}) |
| 111 | assert "sqrt" in msg |
| 112 | assert "4.2426" in msg or "cached" in msg.lower() |
| 113 | |
| 114 | # ------------------------------------------------------------------------- |
| 115 | # Additional coverage tests for uncovered lines |
nothing calls this directly
no outgoing calls
no test coverage detected