(self, tmp_path)
| 947 | assert result == {} |
| 948 | |
| 949 | def test_loads_valid_json(self, tmp_path): |
| 950 | data = {"psf/requests": {"stars": 52467, "owner": "psf", "fetched_at": "2026-01-01T00:00:00+00:00"}} |
| 951 | f = tmp_path / "stars.json" |
| 952 | f.write_text(json.dumps(data), encoding="utf-8") |
| 953 | result = load_stars(f) |
| 954 | assert result["psf/requests"]["stars"] == 52467 |
| 955 | |
| 956 | def test_returns_empty_on_corrupt_json(self, tmp_path): |
| 957 | f = tmp_path / "stars.json" |
nothing calls this directly
no test coverage detected