switch to uv and to nix flakes

This commit is contained in:
Abel Luck 2026-03-29 12:59:08 +02:00
parent 14005f36ce
commit b1bdef2d5d
20 changed files with 1522 additions and 1751 deletions

17
tests/test_entrypoint.py Normal file
View file

@ -0,0 +1,17 @@
from types import SimpleNamespace
from repub.entrypoint import FeedNameFilter
def test_feed_name_filter_accepts_matching_item() -> None:
item = SimpleNamespace(feed_name="nasa")
feed_filter = FeedNameFilter({"feed_name": "nasa"})
assert feed_filter.accepts(item) is True
def test_feed_name_filter_rejects_non_matching_item() -> None:
item = SimpleNamespace(feed_name="gp-pod")
feed_filter = FeedNameFilter({"feed_name": "nasa"})
assert feed_filter.accepts(item) is False