forked from s444420/AL-2020
64 lines
2.5 KiB
Python
64 lines
2.5 KiB
Python
from product import Product
|
|
|
|
|
|
def create_data_products():
|
|
allProducts = []
|
|
|
|
product = Product('black', 'rectangle', 51, 'small')
|
|
allProducts.append(product)
|
|
product = Product('black', 'rectangle', 51, 'small')
|
|
allProducts.append(product)
|
|
product = Product('gold', 'pack', 100, 'big')
|
|
allProducts.append(product)
|
|
product = Product('purple', 'rectangle', 100, 'big')
|
|
allProducts.append(product)
|
|
product = Product('brown', 'pack', 45, 'small')
|
|
allProducts.append(product)
|
|
product = Product('blue', 'rectangle', 50, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('blue', 'square', 40, 'small')
|
|
allProducts.append(product)
|
|
product = Product('blue', 'rectangle', 35, 'small')
|
|
allProducts.append(product)
|
|
product = Product('gold', 'rectangle', 40, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('gold', 'rectangle', 50, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('brown', 'rectangle', 55, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('brown', 'rectangle', 45, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('white', 'rectangle', 40, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('red', 'rectangle', 50, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('blue', 'rectangle', 115, 'big')
|
|
allProducts.append(product)
|
|
product = Product('white', 'rectangle', 15, 'small')
|
|
allProducts.append(product)
|
|
product = Product('red', 'pack', 70, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('orange', 'rectangle', 45, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('blue', 'rectangle', 55, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('gold', 'rectangle', 120, 'big')
|
|
allProducts.append(product)
|
|
product = Product('white', 'rectangle', 120, 'big')
|
|
allProducts.append(product)
|
|
product = Product('white', 'jar', 600, 'big')
|
|
allProducts.append(product)
|
|
product = Product('white', 'rectangle', 25, 'small')
|
|
allProducts.append(product)
|
|
product = Product('brown', 'jar', 500, 'big')
|
|
allProducts.append(product)
|
|
product = Product('brown', 'jar', 470, 'big')
|
|
allProducts.append(product)
|
|
product = Product('red', 'jar', 250, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('black', 'jar', 250, 'medium')
|
|
allProducts.append(product)
|
|
product = Product('orange', 'jar', 250, 'medium')
|
|
allProducts.append(product)
|
|
|
|
return allProducts |