Skip to content

Commit

Permalink
Price script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirosson committed Dec 12, 2024
1 parent 47cd3dc commit aab1f6d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/prices/dcent.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
price_element = soup.find('div', class_='ecom-product-single__price--sale')
price = price_element.get_text(strip=True)

assert price == "$119.00", f"Failed: Price '{price}' does not match expected value"
assert price == "$99.00", f"Failed: Price '{price}' does not match expected value"

print(price)
2 changes: 1 addition & 1 deletion scripts/prices/ellipal-titan-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
price_element = soup.find('span', class_='money')
price = price_element.get_text(strip=True)

assert price == "$129.00", f"Failed: Price '{price}' does not match expected value"
assert price == "$139.00", f"Failed: Price '{price}' does not match expected value"

print(price)
2 changes: 1 addition & 1 deletion scripts/prices/one-key-classic-1s.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Create a BeautifulSoup object to parse the HTML content
soup = BeautifulSoup(response.text, 'html.parser')

price_element = soup.find('span', class_='css-m1wlop')
price_element = soup.find('span', class_='css-1fr8n0s')
price = price_element.get_text(strip=True)

assert price == "$99", f"Failed: Price '{price}' does not match expected value"
Expand Down
2 changes: 1 addition & 1 deletion scripts/prices/one-key-touch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Create a BeautifulSoup object to parse the HTML content
soup = BeautifulSoup(response.text, 'html.parser')

price_element = soup.find('span', class_='css-m1wlop')
price_element = soup.find('span', class_='css-1fr8n0s')
price = price_element.get_text(strip=True)

assert price == "$249", f"Failed: Price '{price}' does not match expected value"
Expand Down

0 comments on commit aab1f6d

Please sign in to comment.