Add file URL RSS feed coverage

This commit is contained in:
Abel Luck 2026-03-29 14:10:20 +02:00
parent 20b9759193
commit fc102d9445
3 changed files with 69 additions and 0 deletions

View file

@ -15,3 +15,20 @@ Because `out_dir` in [`demo/repub.toml`](/home/abel/src/guardianproject/anynews/
## Files
- `repub.toml`: example runtime config with feed definitions and Scrapy overrides
- `fixtures/local-feed.rss`: simple local RSS fixture for `file://` feed testing
## Local File Feed
`repub` already accepts absolute `file://` feed URIs. To point it at the demo fixture, generate an absolute URI like this from the repo root:
```shell
python3 -c 'from pathlib import Path; print(Path("demo/fixtures/local-feed.rss").resolve().as_uri())'
```
Then use that value in a config entry:
```toml
[[feeds]]
name = "local-demo"
url = "file:///absolute/path/to/demo/fixtures/local-feed.rss"
```