コード例 #1
0
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['results_available'] == 1
    assert overview['results']  # is non-empty string
    assert overview['schedule_entry']  # is non-empty string
コード例 #2
0
def test_user_empty_overview_response(user_client):
    response = get_results_overview(user_client)
    assert response == EMPTY_RESULTS_RESPONSE
コード例 #3
0
def test_admin_get_overview(admin_client):
    create_task_results(2, admin_client)
    overview, = get_results_overview(admin_client)
    assert overview['results_available'] == 2
    assert overview['results']  # is non-empty string
    assert overview['schedule_entry']  # is non-empty string