| Conditions | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # pylint: disable=missing-docstring,unused-variable,unused-argument,expression-not-assigned,singleton-comparison |
||
| 38 | def describe_init(): |
||
| 39 | |||
| 40 | def it_loads_previous_results(cache_empty): |
||
| 41 | cache_empty.set("url", {}, "previous") |
||
| 42 | |||
| 43 | cache = Cache() |
||
| 44 | expect(cache.get("url", {})) == "previous" |
||
| 45 | |||
| 46 | def it_handles_missing_cache_files(cache_missing): |
||
| 47 | expect(Cache().get("url", {})) == None |
||
| 48 | |||
| 49 | def it_handles_corrupt_cache_files(cache_corrupt): |
||
| 50 | expect(Cache().get("url", {})) == None |
||
| 51 | |||
| 62 |