mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
* test: do not leave videos_destination as an invalid template test_format_videos_destination deliberately sets %(channel)s to prove unknown placeholders fail, then never restored the global WROLPi config. On xdist workers that later ran channel_factory without async_client re-init, the polluted template caused KeyError/FileNotFoundError in test_format_video_filename_uses_channel_name_over_info_json. * test: stop search_suggestions from flaking empty domains on CI A different failure than videos_destination pollution: under xdist load, search_suggestions sometimes returned no domains for a valid query while channels still matched. Harden the path by: - running channel/domain/author/subject searches sequentially on the shared Session (asyncio.gather is not safe with one SQLAlchemy session) - giving archive_factory a URL when only a domain is set so validate() does not clear collection_id via apply_domain() - rewriting test_search_suggestions without hardcoded Collection ids and with unique names that will not collide with other tests |
||
|---|---|---|
| .. | ||
| archive | ||
| docs | ||
| flasher | ||
| inventory | ||
| map | ||
| videos | ||
| zim | ||
| __init__.py | ||