def METHOD_NAME(
    auth_client, is_employed, expected, status_code, django_assert_num_queries
):
    if is_employed:
        EmploymentFactory.create(user=auth_client.user)
    report = ReportFactory.create(duration=timedelta(hours=1))
    url = reverse("customer-statistic-detail", args=[report.task.project.customer.id])
    with django_assert_num_queries(expected):
        result = auth_client.get(url, data={"ordering": "duration"})
    assert result.status_code == status_code
    if status_code == status.HTTP_200_OK:
        json = result.json()
        assert json["data"]["attributes"]["duration"] == "01:00:00"