def test_object_tags(provider, objecttype):
    """Tests tags in all taggable pages

    Steps:
        * Select a taggable object of provided objecttype randomly from database
        * Run `_validate_tags` with `tags` input
    """
    taggable = get_random_object(provider, objecttype)
    validate_tags(taggable=taggable, tags=tags)
def test_object_tags(provider, objecttype):
    """Tests tags in all taggable pages

    Steps:
        * Select a taggable object of provided objecttype randomly from database
        * Run `_validate_tags` with `tags` input
    """
    taggable = get_random_object(provider, objecttype)
    validate_tags(taggable=taggable, tags=tags)
def test_object_utilization(provider, object_type):
    """Tests utilization charts in all pages that has utilization charts

    Steps:
        * Select a utilization object of provided object_type randomly from database
        * Run `validate_utilization` with `utilization_obj` input
    """
    utilization_obj = get_random_object(provider=provider, objecttype=object_type, load_from="db")
    validate_utilization(utilization_obj=utilization_obj.utilization)
def test_object_utilization(provider, object_type):
    """Tests utilization charts in all pages that has utilization charts

    Steps:
        * Select a utilization object of provided object_type randomly from database
        * Run `validate_utilization` with `utilization_obj` input
    """
    utilization_obj = get_random_object(provider=provider,
                                        objecttype=object_type,
                                        load_from="db")
    validate_utilization(utilization_obj=utilization_obj.utilization)
def test_download_summary(provider, objecttype):
    """ Download the summary page in PDF format """
    get_random_object(provider, objecttype).download_summary()
def test_download_summary(provider, objecttype):
    """ Download the summary page in PDF format """
    get_random_object(provider, objecttype).download_summary()