about summary refs log tree commit diff
path: root/tst
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-06-16 15:28:30 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-06-16 15:28:30 +0900
commit58ad9b49dfc393c41f86fda4632da1c934b062f4 (patch)
tree31c61cb6e48f2c207649ea866eac2cd31149ea7e /tst
parentc3d356c8b80659468a0a7429636a128c156509ae (diff)
downloadscadere-58ad9b49dfc393c41f86fda4632da1c934b062f4.tar.gz
Add option for feed title
Diffstat (limited to 'tst')
-rw-r--r--tst/test_listen.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tst/test_listen.py b/tst/test_listen.py
index 49b9dd8..cf47ab7 100644
--- a/tst/test_listen.py
+++ b/tst/test_listen.py
@@ -221,12 +221,13 @@ def unique_netlocs(summaries):
 
 
 @given(urls().filter(is_base_url).filter(has_usual_path),
-       sets(certificates(), min_size=1).map(unique_netlocs))
+       sets(certificates(), min_size=1).map(unique_netlocs),
+       text().filter(printable))
 @settings(suppress_health_check=[HealthCheck.too_slow])
-async def test_content(base_url, certs):
+async def test_content(base_url, certs, title):
     base_path = urlsplit(base_url).path
     with tmp_cert_file(certs) as cert_file:
-        handler = partial(handle, cert_file, base_url)
+        handler = partial(handle, cert_file, base_url, title=title)
         await check_server(handler, check_feed, base_path)