def METHOD_NAME(self, session, test_client):
    workspace = WorkspaceFactory.create()
    command = EmptyCommandFactory.create(workspace=workspace)
    host = HostFactory.create(workspace=workspace)
    vuln_critical = VulnerabilityFactory.create(severity='critical', workspace=workspace, host=host, service=None)
    vuln_high = VulnerabilityFactory.create(severity='high', workspace=workspace, host=host, service=None)
    vuln_med = VulnerabilityFactory.create(severity='medium', workspace=workspace, host=host, service=None)
    vuln_med2 = VulnerabilityFactory.create(severity='medium', workspace=workspace, host=host, service=None)
    vuln_low = VulnerabilityFactory.create(severity='low', workspace=workspace, host=host, service=None)
    vuln_info = VulnerabilityFactory.create(severity='informational', workspace=workspace, host=host, service=None)
    vuln_info2 = VulnerabilityFactory.create(severity='informational', workspace=workspace, host=host, service=None)
    vuln_unclassified = VulnerabilityFactory.create(severity='unclassified', workspace=workspace, host=host, service=None)
    session.flush()
    CommandObjectFactory.create(
        command=command,
        object_type='host',
        object_id=host.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_critical.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_high.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_med.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_med2.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_low.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_info.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_info2.id,
        workspace=workspace
    )
    CommandObjectFactory.create(
        command=command,
        object_type='vulnerability',
        object_id=vuln_unclassified.id,
        workspace=workspace
    )
    session.commit()
    res = test_client.get(f'/v3/ws/{command.workspace.name}/activities')
    assert res.status_code == 200
    assert res.json['activities'][0]['vulnerabilities_count'] == 8
    assert res.json['activities'][0]['criticalIssue'] == 1
    assert res.json['activities'][0]['highIssue'] == 1
    assert res.json['activities'][0]['mediumIssue'] == 2
    assert res.json['activities'][0]['lowIssue'] == 1
    assert res.json['activities'][0]['infoIssue'] == 2
    assert res.json['activities'][0]['unclassifiedIssue'] == 1