MCPcopy Index your code

hub / github.com/Screenly/Anthias / functions

Functions1,832 in github.com/Screenly/Anthias

Methodrespawning_wrapper
(send: Any)
tests/test_media_player.py:1051
Functionrestore_blank_state
()
tests/test_viewer.py:2138
Functionrestore_shuffle_setting
()
tests/test_scheduler.py:114
Functionrevalidate_asset_url
On-demand probe for a single asset. Triggered when the viewer hits an asset it can't display, so the sweep doesn't have to be the only path t
src/anthias_server/celery_tasks.py:1448
Functionrevalidate_asset_urls
Refresh ``Asset.is_reachable`` for every enabled asset. Runs on the celery-beat schedule registered in ``setup_periodic_tasks``. Skips disabl
src/anthias_server/celery_tasks.py:1173
Functionrf
()
tests/test_error_pages.py:36
FunctionsectionAllSelected
(section)
src/anthias_server/app/static/src/home.ts:292
MethodsectionAllSelected
(section: SectionKey)
src/anthias_server/app/static/src/home.ts:75
FunctionsectionSomeSelected
(section)
src/anthias_server/app/static/src/home.ts:298
MethodsectionSomeSelected
(section: SectionKey)
src/anthias_server/app/static/src/home.ts:76
Functionseeded_assets
Three rows covering the local-file path (image+video) and the URL-backed path. Tests assert on names rather than ids so an eventual reordering
tests/test_migrate_to_screenly.py:63
Functionsend_telemetry_task
()
src/anthias_server/celery_tasks.py:342
Methodset_asset
(self, uri: str, duration: int | str)
src/anthias_viewer/media_player.py:532
Functionset_browser_bus
Inject the AnthiasViewer D-Bus proxy. Called from ``anthias_viewer/__init__.py`` after the webview's ``Anthias service start`` handshake. ``M
src/anthias_viewer/media_player.py:36
Functionset_display_power
Send a CEC power_on / standby to the connected TV. Returns ``(ok, message)`` for direct surfacing to the operator as a toast. Stays synchrono
src/anthias_server/lib/diagnostics.py:107
Functionset_ip_addresses
()
src/anthias_host_agent/__main__.py:75
Functionset_send_to_webview
Inject the webview-gone-aware call wrapper (see ``_send_to_webview`` in anthias_viewer/__init__.py). Injected from setup() alongside ``set_bro
src/anthias_viewer/media_player.py:53
Functionsettings_backup
Stream the backup archive as it is being built. The pre-#2987 shape — create_backup() to a staging file, then a FileResponse — sent zero resp
src/anthias_server/app/views.py:1324
Functionsettings_data
()
tests/test_telemetry.py:19
Functionsettings_display_power
(request: HttpRequest, state: str)
src/anthias_server/app/views.py:1417
Functionsettings_env
()
tests/test_settings.py:96
Functionsettings_reboot
(request: HttpRequest)
src/anthias_server/app/views.py:1397
Functionsettings_recover
(request: HttpRequest)
src/anthias_server/app/views.py:1357
Functionsettings_save
Mirror of api.views.v2.DeviceSettingsViewV2.patch. Touches the same settings primitives the API view does so the JSON and HTML write paths st
src/anthias_server/app/views.py:1245
Functionsettings_shutdown
(request: HttpRequest)
src/anthias_server/app/views.py:1405
Functionsettings_view
(request: HttpRequest)
src/anthias_server/app/views.py:1237
Functionsetup_periodic_tasks
(sender: Any, **kwargs: Any)
src/anthias_server/celery_tasks.py:285
Functionshutdown_anthias
Background task to shutdown Anthias
src/anthias_server/celery_tasks.py:1139
Functionside_effect
(url: str, **kwargs: object)
tools/raspberry_pi_imager/tests/test_build_pi_imager_json.py:115
Functionsigalrm
Signal just throw an SigalrmError
src/anthias_viewer/utils.py:16
Functionsparse_guess_extension
(file_type: str)
tests/test_template_views.py:1957
Functionsplash_page
(request: HttpRequest)
src/anthias_server/app/views.py:1493
Functionstatic_root
()
tests/test_views_files.py:214
Functionstatic_with_mime
(request: HttpRequest, filename: str)
src/anthias_server/app/views_files.py:106
Functionsteal_during_sweep
(*args: object, **kwargs: object)
tests/test_celery_tasks.py:452
Methodstop
(self)
src/anthias_viewer/media_player.py:398
FunctionsyncVisibleIds
(activeIds, inactiveIds)
src/anthias_server/app/static/src/home.ts:282
MethodsyncVisibleIds
(activeIds: string[], inactiveIds: string[])
src/anthias_server/app/static/src/home.ts:74
Functionsystem_info
()
src/anthias_server/app/page_context.py:59
Functionsystem_info
(request: HttpRequest)
src/anthias_server/app/views.py:1437
Functiontelemetry_env
( fake_redis: MagicMock, settings_data: dict[str, Any], )
tests/test_telemetry.py:40
Functiontest_24_hour_clock_play_window_end_to_end
Counterpart to the 12-hour regression: with the 24-hour clock enabled in Settings, the play-window pickers run without an AM/PM toggle, post H
tests/test_app.py:1515
Functiontest_404_handler_uses_branded_template
End-to-end: with DEBUG off, an unknown URL hits Django's default 404 handler, which loads our 404.html.
tests/test_error_pages.py:54
Functiontest_500_handler_returns_branded_body
500's signature differs (no `exception` kwarg) and the renderer skips context processors, so test it on its own.
tests/test_error_pages.py:88
Functiontest_active_row_renders_with_drag_handle
( reset_assets: None, page: Page )
tests/test_app.py:497
Functiontest_add_asset_modal_layers_over_full_schedule
Add-asset modal must layer correctly above a populated table. Asserts that the modal card has a non-zero bounding box inside the visible viewp
tests/test_app.py:386
Functiontest_add_asset_modal_opens
(reset_assets: None, page: Page)
tests/test_app.py:539
Functiontest_add_asset_via_image_upload
(reset_assets: None, page: Page)
tests/test_app.py:566
Functiontest_add_asset_via_url
(reset_assets: None, page: Page)
tests/test_app.py:547
Functiontest_add_asset_via_video_upload
(reset_assets: None, page: Page)
tests/test_app.py:591
Functiontest_add_multiple_uploads_at_once
Regression for #3045: selecting several files in one go uploads every one of them. The file input carries ``multiple`` and uploadFiles() in ho
tests/test_app.py:665
Functiontest_add_two_uploads_in_one_modal_session
( reset_assets: None, page: Page )
tests/test_app.py:636
Methodtest_agrees_with_the_canonical_helper
( self, monkeypatch: pytest.MonkeyPatch )
tests/test_sentry.py:266
Functiontest_alpine_click_handlers_fire_on_production_bundle
Regression for Bun --minify-identifiers renaming Alpine's runtime expression evaluator vars. With identifiers minified, ``@click="openAdd()"``
tests/test_app.py:283
Functiontest_anthias_assets_blocks_192_lan_client
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:158
Functiontest_anthias_assets_blocks_public_client
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:151
Functiontest_anthias_assets_directory_request_404
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:197
Functiontest_anthias_assets_missing_file
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:173
Functiontest_anthias_assets_serves_file_for_docker_bridge_client
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:144
Functiontest_anthias_assets_symlink_escape_blocked
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:183
Functiontest_anthias_assets_traversal_blocked
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:165
Methodtest_appends_short_hash_when_env_present
( self, monkeypatch: pytest.MonkeyPatch )
tests/test_sentry.py:213
Functiontest_apply_auth_settings_change_password_rejects_too_short
Same validator stack runs on password change.
tests/test_auth.py:523
Functiontest_apply_auth_settings_change_password_requires_current
()
tests/test_auth.py:388
Functiontest_apply_auth_settings_change_password_success
()
tests/test_auth.py:371
Functiontest_apply_auth_settings_change_password_wrong_current
()
tests/test_auth.py:406
Functiontest_apply_auth_settings_change_username_collision
Renaming the operator to a username that already exists must raise a friendly error instead of leaking IntegrityError.
tests/test_auth.py:685
Functiontest_apply_auth_settings_change_username_success
()
tests/test_auth.py:422
Functiontest_apply_auth_settings_disable_requires_current_password
()
tests/test_auth.py:441
Functiontest_apply_auth_settings_disable_with_correct_password_succeeds
()
tests/test_auth.py:460
Functiontest_apply_auth_settings_initial_enable_creates_superuser
Auth disabled → enabling for the first time creates a User with is_staff/is_superuser=True so the operator can also reach /admin/ via Django's
tests/test_auth.py:306
Functiontest_apply_auth_settings_initial_enable_password_mismatch
()
tests/test_auth.py:356
Functiontest_apply_auth_settings_initial_enable_rejects_short_password
``AUTH_PASSWORD_VALIDATORS`` is configured with MinimumLengthValidator (default 8). Initial enable must reject a too-short password instead of
tests/test_auth.py:503
Functiontest_apply_auth_settings_initial_enable_requires_password
()
tests/test_auth.py:341
Functiontest_apply_auth_settings_initial_enable_requires_username
()
tests/test_auth.py:326
Functiontest_apply_auth_settings_noop_does_not_write_user_row
``apply_auth_settings`` runs on every settings POST (the form sends the whole page, including unrelated toggles like show_splash). When nothin
tests/test_auth.py:648
Functiontest_apply_auth_settings_re_enable_with_correct_pwd_succeeds
Same setup as the privilege-escalation test, but with the correct current password — re-enable should succeed and may rotate the operator's us
tests/test_auth.py:594
Functiontest_apply_auth_settings_re_enable_with_persisted_user_requires_pwd
Privilege-escalation guard: when auth is currently disabled (``auth_backend == ''``) but a User row already exists in the DB (e.g. preserved b
tests/test_auth.py:543
Functiontest_apply_auth_settings_rejects_non_operator_session
If a recovery superuser was created via ``manage.py createsuperuser`` and that recovery account is the one currently logged in, ``apply_auth_s
tests/test_auth.py:616
Functiontest_apply_auth_settings_rejects_unknown_backend
A hand-crafted form POST that smuggles an unknown auth_backend value (e.g. 'something-else') must be rejected before any DB or conf mutation.
tests/test_auth.py:478
Functiontest_apply_wlr_power_noop_off_wayland
eglfs/linuxfb boards can't be powered off via wlr-randr; the call is a no-op there (the blank path paints black instead).
tests/test_viewer.py:2181
Functiontest_apply_wlr_power_targets_all_outputs_including_disabled
Power-off/on must reach *disabled* outputs too, so unblank can turn a previously blanked (Enabled: no) connector back on.
tests/test_viewer.py:2147
Functiontest_apply_wlr_transform_invokes_wlr_randr_per_output
On x86, list enabled outputs then push the transform to each.
tests/test_viewer.py:1481
Functiontest_apply_wlr_transform_logs_warning_on_nonzero_exit
wlr-randr's exit code is informative — cage may not be ready yet, the output name can vanish between list and apply, etc. The helper must surf
tests/test_viewer.py:1559
Functiontest_apply_wlr_transform_runs_on_pi5
Issue #3044: the wlr-randr path must actually fire on Pi 5 — previously gated behind an x86-only _is_wayland_board(), so the rotation menu was
tests/test_viewer.py:1254
Functiontest_apply_wlr_transform_skipped_on_linuxfb
The wlr-randr binary isn't even shipped on Pi boards — make sure we never call it from a non-wayland viewer.
tests/test_viewer.py:1466
Functiontest_asset_content
(api_client: APIClient, cleanup_asset_dir: None)
src/anthias_server/api/tests/test_v1_endpoints.py:42
Functiontest_asset_ids_filter_emits_json_array
(bulk_assets: list[Asset])
tests/test_template_views.py:1619
Functiontest_asset_ids_json_is_html_escaped_in_x_init
Regression for the Copilot review of #3048: the asset_ids JSON is inlined into a double-quoted x-init="…" attribute, so its own double quotes
tests/test_template_views.py:1660
Functiontest_asset_loop_consumes_pending_rotation_bounce
asset_loop must consume the subscriber-set flag at the top of each tick — that's the main-thread side of the cross-thread handoff that keeps v
tests/test_viewer.py:1770
Functiontest_asset_loop_does_not_recheck_missing_local_asset
()
tests/test_viewer.py:857
Functiontest_asset_loop_rechecks_unreachable_remote_asset
()
tests/test_viewer.py:878
Functiontest_asset_loop_retries_wayland_rotation
asset_loop must drive the Wayland startup-failure retry — Copilot review of #2882 flagged that without it, an early-boot wlr-randr failure (ca
tests/test_viewer.py:1793
Functiontest_asset_row_no_error_pill_when_metadata_clean
The vanilla happy-path row (no metadata, not processing) shows the active-toggle, not the error pill.
tests/test_template_views.py:145
Functiontest_asset_row_renders_error_pill_when_processing_failed
A row whose normalisation task failed (metadata.error_message populated, is_processing cleared) renders the warn-coloured "Failed" pill in pla
tests/test_template_views.py:109
Functiontest_asset_row_shows_humanised_duration
( reset_assets: None, page: Page )
tests/test_app.py:524
Functiontest_asset_table_partial
(client: Client, asset: Asset)
tests/test_template_views.py:102
Functiontest_asset_table_partial_via_htmx_header
Write endpoints branch on HX-Request — exercise the HTMX path so the partial-rendering branch in _asset_table_response is hit.
tests/test_template_views.py:1679
Functiontest_asset_table_renders_selection_controls
( client: Client, bulk_assets: list[Asset] )
tests/test_template_views.py:1629
Functiontest_assets_bulk_action_delete
( client: Client, bulk_assets: list[Asset] )
tests/test_template_views.py:1128
← previousnext →801–900 of 1,832, ranked by callers