Remove extra whitespace in the testing files.
Make importProducts check file headers. Add testing collateral, and tests
This commit is contained in:
parent
b283ebaf81
commit
b03b3b340e
6 changed files with 173 additions and 102 deletions
4
t/supporting_collateral/productTables/badHeaders.csv
Normal file
4
t/supporting_collateral/productTables/badHeaders.csv
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
mastersku,skew,title,shortdescription,price,weight,quantity
|
||||
t-shirt,red-t-shirt,Red T-Shirt,Red T-Shirt,5.00,1.33,1000
|
||||
t-shirt,blue-t-shirt,Blue T-Shirt,Blue T-Shirt,5.25,1.33,2000
|
||||
soda,soda-sweet,Sweet Soda-bottled in Oregon,Sweet Soda,0.95,0.95,500
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
mastersku,sku,title,shortdescription,price,weight,quantity
|
||||
t-shirt,red-t-shirt,Red T-Shirt,Red T-Shirt,5.00,1.33,1000
|
||||
t-shirt,blue-t-shirt,Blue T-Shirt,Blue T-Shirt,5.25,1.33,2000
|
||||
soda,soda-sweet,Sweet Soda-bottled in Oregon,Sweet Soda,0.95,0.95,500
|
||||
|
3
t/supporting_collateral/productTables/missingHeaders.csv
Normal file
3
t/supporting_collateral/productTables/missingHeaders.csv
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
t-shirt,red-t-shirt,Red T-Shirt,Red T-Shirt,5.00,1.33,1000
|
||||
t-shirt,blue-t-shirt,Blue T-Shirt,Blue T-Shirt,5.25,1.33,2000
|
||||
soda,soda-sweet,Sweet Soda-bottled in Oregon,Sweet Soda,0.95,0.95,500
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue