def test_overview_for_private_entry_is_private(admin_client, user_client, test_scheduler): simulate_acquisitions(admin_client, is_private=True) overview = get_results_overview(user_client) assert overview == [] overview, = get_results_overview(admin_client) assert overview["task_results_available"] == 1 assert overview["task_results"] # is non-empty string assert overview["schedule_entry"] # is non-empty string
def test_admin_get_overview(admin_client): create_task_results(2, admin_client) (overview, ) = get_results_overview(admin_client) assert overview["task_results_available"] == 2 assert overview[ "archive"] is None # indicates no acquisition data available assert overview["task_results"] # is non-empty string assert overview["schedule_entry"] # is non-empty string
def test_admin_empty_overview_response(admin_client): response = get_results_overview(admin_client) assert response == EMPTY_RESULTS_RESPONSE