switch to uv and to nix flakes
This commit is contained in:
parent
14005f36ce
commit
b1bdef2d5d
20 changed files with 1522 additions and 1751 deletions
17
tests/test_entrypoint.py
Normal file
17
tests/test_entrypoint.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue