sda.dashboard.api.routes.tests ============================== .. py:module:: sda.dashboard.api.routes.tests .. autoapi-nested-parse:: Routes for test discovery and metadata. Attributes ---------- .. autoapisummary:: sda.dashboard.api.routes.tests.logger sda.dashboard.api.routes.tests.router Functions --------- .. autoapisummary:: sda.dashboard.api.routes.tests.get_startup_tests sda.dashboard.api.routes.tests.get_tests sda.dashboard.api.routes.tests.get_test_info Module Contents --------------- .. py:data:: logger .. py:data:: router .. py:function:: get_startup_tests(request) :async: 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. .. py:function:: get_tests(request, filter = Query(default='*', description='fnmatch pattern to filter test names')) :async: 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. .. py:function:: get_test_info(test_name, request) :async: Return column names, default columns, and row count for a test.