Fix AH scraping
This commit is contained in:
parent
35b0446447
commit
063ac3a4fd
4 changed files with 37 additions and 25 deletions
|
@ -1,6 +1,16 @@
|
|||
from scrapers import *
|
||||
|
||||
|
||||
def test_scrape_ah():
|
||||
# Ola Liuk
|
||||
prod = ah_get_by_gtin('8711327538481')
|
||||
assert type(prod) is Product
|
||||
assert prod.name == 'Ola Liuk'
|
||||
assert prod.gtin == '8711327538481'
|
||||
assert prod.units == 8
|
||||
assert prod.aliases == []
|
||||
|
||||
|
||||
def test_scrape_sligro():
|
||||
# Cola zero sugar
|
||||
prod = sligro_get_by_gtin('5000112659184')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue