Added a test for scraping the promotions and exporting them to xlsx files.

This commit is contained in:
KorenLazar
2021-08-16 23:09:10 +03:00
parent 1a88ed6e01
commit c1281cb312
2 changed files with 86 additions and 0 deletions

View File

@@ -21,6 +21,8 @@ from supermarket_chain import SupermarketChain
XML_FILES_PROMOTIONS_CATEGORIES = [SupermarketChain.XMLFilesCategory.PromosFull,
SupermarketChain.XMLFilesCategory.Promos]
PROMOTION_COLS_NUM = 15 # The length of the list returned by get_promotion_row_for_table function
INVALID_OR_UNKNOWN_PROMOTION_FUNCTION = -1
PROMOTIONS_TABLE_HEADERS = [