wrolpi/wrolpi/test
lrnselfreliance c7bafaa7fb
Starting the app again adds no signal routes (#949)
Sanic's SignalRouter.finalize appends a `sanic.__signal__.__init__` handler
before it checks whether the router is already finalized.  Every start of the
app finalizes it again (the test client, Sanic's startup, and
finalize_signals_after_auto_routes), so each test left two more routes.  After
a few hundred tests in one process the compiled router was too deep for the
compiler (RecursionError in sanic_routing, intermittently failing whichever
tests a worker happened to run late).

api_app's signal router now skips a finalize when it is already finalized, and
registers that handler once.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:00:41 -07:00
..
fixtures/configs Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00
__init__.py A new start 2021-11-01 16:43:09 -06:00
common.py A config import records the version of the file it read (#897) 2026-10-27 21:03:52 -06:00
test_api_fixtures.py db: request-path library functions use the request's connection (#774) 2026-10-04 11:05:20 -06:00
test_api_utils.py Starting the app again adds no signal routes (#949) 2026-11-07 13:00:41 -07:00
test_bookmarks.py domains.yaml imports by diffing (#871) 2026-10-25 11:41:59 -06:00
test_caddy_apt_repo.py Caddy's apt repository is trusted through the key committed with WROLPi (#911) 2026-10-31 10:22:19 -06:00
test_captions.py videos: center YouTube auto-captions at download time 2026-07-16 18:51:36 -06:00
test_cmd.py which() prefers the executable found in $PATH (#852) 2026-10-21 16:49:41 -06:00
test_common.py A refresh groups each stem's files together even when another stem sorts between them (#929) 2026-11-01 12:38:48 -07:00
test_config_api.py tags.yaml imports by diffing (#868) 2026-10-24 20:16:39 -06:00
test_config_backup_import.py A malformed entry stops a backup preview or merge with an error naming it (#896) 2026-10-27 20:59:49 -06:00
test_config_import.py tags.yaml imports by diffing (#868) 2026-10-24 20:16:39 -06:00
test_config_import_benchmark.py Database configs carry a version the database keeps too (#866) 2026-10-24 14:58:18 -06:00
test_config_malformed_entries.py A malformed config entry is skipped and counted instead of failing the import (#875) 2026-10-25 16:28:34 -06:00
test_config_partial_import.py A refresh that finishes before tags.yaml is imported no longer reports a failed save (#941) 2026-11-02 19:12:41 -07:00
test_config_version.py A config import records the version of the file it read (#897) 2026-10-27 21:03:52 -06:00
test_contexts.py A config import records the version of the file it read (#897) 2026-10-27 21:03:52 -06:00
test_cross_config_disaster_recovery.py Track how far the user is through a file, kept in recently_viewed.yaml (#787) 2026-10-08 16:15:25 -06:00
test_dates.py Remove code that only tests called (#888) 2026-10-27 16:00:27 -06:00
test_db.py Database configs carry a version the database keeps too (#866) 2026-10-24 14:58:18 -06:00
test_db_bootstrap.py Strip whitespace from Tag names (#876) 2026-10-25 16:22:16 -06:00
test_db_query.py Database schema lists each column's foreign key (#822) 2026-10-11 19:38:39 -06:00
test_downloader.py Startup no longer renews failed once-downloads (#940) 2026-11-02 18:36:57 -07:00
test_downloads_config.py Database configs carry a version the database keeps too (#866) 2026-10-24 14:58:18 -06:00
test_events.py Rename skip_circleci to skip_ci (#797) 2026-10-08 17:28:13 -06:00
test_extensions.py Creating browser extension to facilitate starting downloads. Chrome/Brave and Firefox supported. 2026-05-03 11:48:50 -06:00
test_file_config_import.py Configs without database rows read and validate only; imports run off the event loop (#874) 2026-10-25 15:17:31 -06:00
test_flags.py A library on the internal disk gets a database (#832) 2026-10-14 16:15:33 -06:00
test_fts.py Postgres -> SQLite hard cutover: the database moves into the media directory. 2026-07-12 14:09:37 -06:00
test_jobs.py Jobs queue, video Edit dropdown: transcode/remux, edit title & description (#711) 2026-09-16 19:25:23 -06:00
test_json_encoder.py API JSON: encode paths without a lookup per path (#810) 2026-10-09 19:45:43 -06:00
test_model_repr.py Model reprs read only loaded state (#819) 2026-10-11 16:47:32 -06:00
test_npm_tools.py serve, single-file and readability-extractor install from a committed lockfile (#912) 2026-10-31 10:39:08 -06:00
test_perpetual.py api: forked workers die on SIGTERM before Sanic installs their handlers (#743) 2026-10-02 15:49:06 -06:00
test_python_requirements.py Python packages install from hash-locked requirements; yt-dlp still floats (#913) 2026-11-01 12:00:39 -07:00
test_request_db.py db: request-path library functions use the request's connection (#774) 2026-10-04 11:05:20 -06:00
test_root_api.py Download and tag requests wait for a concurrent writer (#848) 2026-10-21 16:48:16 -06:00
test_rss.py Using stubs to simplify tests. 2026-05-07 20:07:46 -06:00
test_serializers.py db: serializers read only loaded data (#777) 2026-10-04 18:28:08 -06:00
test_speedtest.py Speed Test calculator: ping, download, and upload against the API (#708) 2026-09-13 18:47:18 -06:00
test_switches.py Fix API stalls: non-blocking switch worker, threaded searches, indexed Videos page (#678) 2026-08-29 16:17:53 -06:00
test_tags.py Renaming a Tag commits its Download renames with the request (#879) 2026-10-25 18:34:34 -06:00
test_tags_config_import.py tags.yaml imports by diffing (#868) 2026-10-24 20:16:39 -06:00
test_trust_store.py An upgrade installs Deno only when its sha256 matches (#908) 2026-10-30 20:48:12 -06:00
test_upgrade.py api: run the perpetual loops in one Sanic-managed process (#718) 2026-09-23 07:53:53 -06:00
test_upgrade_sh.py An upgrade refuses to roll back to an older commit of the current branch (#910) 2026-10-31 09:33:25 -06:00
test_verify_wrolpi_commit.py install.sh and both image builds run WROLPi only from a signed checkout (#909) 2026-10-30 21:27:41 -06:00