예제 #1
0
def test_get_variant_picker_data_proper_variant_count(product_in_stock):
    """
    test checks if get_variant_picker_data provide proper count of
    variant information from available product variants and not count
    of variant attributes from product class
    """
    data = get_variant_picker_data(
        product_in_stock, discounts=None, local_currency=None)

    assert len(data['variantAttributes'][0]['values']) == 1
예제 #2
0
def test_get_variant_picker_data_proper_variant_count(product_in_stock):
    data = get_variant_picker_data(product_in_stock,
                                   discounts=None,
                                   local_currency=None)

    assert len(data['variantAttributes'][0]['values']) == 1
예제 #3
0
def test_get_variant_picker_data_proper_variant_count(product_in_stock):
    data = get_variant_picker_data(
        product_in_stock, discounts=None, local_currency=None)

    assert len(data['variantAttributes'][0]['values']) == 1