Test that cleanup_cache works properly with null cache
(synthetic_dataset, capsys)
| 116 | |
| 117 | |
| 118 | def test_cleanup_cache_with_null_cache(synthetic_dataset, capsys): |
| 119 | """Test that cleanup_cache works properly with null cache""" |
| 120 | with make_reader(synthetic_dataset.url, cache_type='null') as reader: |
| 121 | next(reader) |
| 122 | # Manually call cleanup_cache to test it |
| 123 | reader.cleanup_cache() |
| 124 | |
| 125 | # Check that cleanup message was printed |
| 126 | captured = capsys.readouterr() |
| 127 | assert "Cache cleanup complete." in captured.out |
| 128 | |
| 129 | |
| 130 | def test_cleanup_cache_manual_call(synthetic_dataset, tmpdir): |
nothing calls this directly
no test coverage detected
searching dependent graphs…