Has added tests for the promotion functions for Shufersal and CoOp. Also added minor design changes in promotion.py and item.py

This commit is contained in:
KorenLazar
2021-03-08 14:13:30 +02:00
parent c86fc7c1ab
commit 9f5464317d
5 changed files with 393 additions and 80 deletions

View File

@@ -3,11 +3,11 @@ class Item:
A class representing a product in some supermarket.
"""
def __init__(self, name: str, price: float, manufacturer: str, code: int):
def __init__(self, name: str, price: float, manufacturer: str, code: str):
self.name: str = name
self.price: float = price
self.manufacturer: str = manufacturer
self.code: int = code
self.code: str = code
def __repr__(self):
return str((self.name, self.price, self.manufacturer, self.code))