sda.dashboard.api.routes.tests#
Routes for test discovery and metadata.
Attributes#
Functions#
|
Return the test(s) pre-loaded when the server started via the CLI. |
|
List available test names, optionally filtered by a fnmatch pattern. |
|
Return column names, default columns, and row count for a test. |
Module Contents#
- sda.dashboard.api.routes.tests.logger#
- sda.dashboard.api.routes.tests.router#
- async sda.dashboard.api.routes.tests.get_startup_tests(request)#
Return the test(s) pre-loaded when the server started via the CLI.
Returns an empty list when the dashboard was started without test arguments.
- async sda.dashboard.api.routes.tests.get_tests(request, filter=Query(default='*', description='fnmatch pattern to filter test names'))#
List available test names, optionally filtered by a fnmatch pattern.
When the dashboard was started with
--inc-cloud(source != 'local'), cloud-discovered tests are merged into the list so the dropdown is populated even when no local data files are synced.
- async sda.dashboard.api.routes.tests.get_test_info(test_name, request)#
Return column names, default columns, and row count for a test.