From e8d4d8a1f9326ead5d1151e0bcfefc79f9d70d75 Mon Sep 17 00:00:00 2001
From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com>
Date: Wed, 15 Jul 2026 01:56:42 +0530
Subject: [PATCH] test(amazon): add offline html fixtures
---
.../tests/unit/platforms/amazon/__init__.py | 0
.../amazon/fixtures/bestsellers.html | 17 +++++++
.../platforms/amazon/fixtures/blocked.html | 9 ++++
.../platforms/amazon/fixtures/offers.html | 17 +++++++
.../platforms/amazon/fixtures/product.html | 51 +++++++++++++++++++
.../platforms/amazon/fixtures/search.html | 19 +++++++
.../platforms/amazon/fixtures/seller.html | 11 ++++
7 files changed, 124 insertions(+)
create mode 100644 surfsense_backend/tests/unit/platforms/amazon/__init__.py
create mode 100644 surfsense_backend/tests/unit/platforms/amazon/fixtures/bestsellers.html
create mode 100644 surfsense_backend/tests/unit/platforms/amazon/fixtures/blocked.html
create mode 100644 surfsense_backend/tests/unit/platforms/amazon/fixtures/offers.html
create mode 100644 surfsense_backend/tests/unit/platforms/amazon/fixtures/product.html
create mode 100644 surfsense_backend/tests/unit/platforms/amazon/fixtures/search.html
create mode 100644 surfsense_backend/tests/unit/platforms/amazon/fixtures/seller.html
diff --git a/surfsense_backend/tests/unit/platforms/amazon/__init__.py b/surfsense_backend/tests/unit/platforms/amazon/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/surfsense_backend/tests/unit/platforms/amazon/fixtures/bestsellers.html b/surfsense_backend/tests/unit/platforms/amazon/fixtures/bestsellers.html
new file mode 100644
index 000000000..d6323e9c2
--- /dev/null
+++ b/surfsense_backend/tests/unit/platforms/amazon/fixtures/bestsellers.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
diff --git a/surfsense_backend/tests/unit/platforms/amazon/fixtures/blocked.html b/surfsense_backend/tests/unit/platforms/amazon/fixtures/blocked.html
new file mode 100644
index 000000000..3d4517b61
--- /dev/null
+++ b/surfsense_backend/tests/unit/platforms/amazon/fixtures/blocked.html
@@ -0,0 +1,9 @@
+
+
+ Robot Check
+
+
+
+
diff --git a/surfsense_backend/tests/unit/platforms/amazon/fixtures/offers.html b/surfsense_backend/tests/unit/platforms/amazon/fixtures/offers.html
new file mode 100644
index 000000000..d3ff57ccc
--- /dev/null
+++ b/surfsense_backend/tests/unit/platforms/amazon/fixtures/offers.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
New
+
$47.50
+
+
FREE delivery tomorrow
+
+
+
Used - Very Good
+
$39.00
+
+
+
+
diff --git a/surfsense_backend/tests/unit/platforms/amazon/fixtures/product.html b/surfsense_backend/tests/unit/platforms/amazon/fixtures/product.html
new file mode 100644
index 000000000..450cda040
--- /dev/null
+++ b/surfsense_backend/tests/unit/platforms/amazon/fixtures/product.html
@@ -0,0 +1,51 @@
+
+
+
+
+ Example Wireless Headphones
+ Visit the Example Store
+ Example Retailer
+
+ $49.99
+ $79.99
+
+
+
4.6 out of 5 stars
+
1,234 ratings
+
Reviews
+
+
+ | 5 star | 80% |
+ | 4 star | 12% |
+
+ In Stock
+ 2K+ bought in past month
+ - Long battery life
- Noise cancelling
+ Detailed product description.
+
+ Premium materials and comfort.

+ Designed for everyday listening.
+ - Best Sellers Rank: #12 in Electronics #3 in Headphones
+
+
+ Amazon's Choice
+
+
+
Alex
+
Excellent sound
+
5.0 out of 5 stars
+
Reviewed on July 1, 2026
+
Clear and comfortable.
+
Verified Purchase
+
12 people found this helpful
+
+
+
diff --git a/surfsense_backend/tests/unit/platforms/amazon/fixtures/search.html b/surfsense_backend/tests/unit/platforms/amazon/fixtures/search.html
new file mode 100644
index 000000000..f565b95c6
--- /dev/null
+++ b/surfsense_backend/tests/unit/platforms/amazon/fixtures/search.html
@@ -0,0 +1,19 @@
+
+
+
+
+
+
$49.99
+
4.6 out of 5 stars
+
1,234
+

+
Best Seller
+
+
+
Sponsored
+
+
$29.99
+
4.2 out of 5 stars
+
+
+
diff --git a/surfsense_backend/tests/unit/platforms/amazon/fixtures/seller.html b/surfsense_backend/tests/unit/platforms/amazon/fixtures/seller.html
new file mode 100644
index 000000000..c679d1803
--- /dev/null
+++ b/surfsense_backend/tests/unit/platforms/amazon/fixtures/seller.html
@@ -0,0 +1,11 @@
+
+
+
+ Example Retailer
+ 1,875 ratings
+
+ | 4.8 out of 5 stars |
+ | 1,875 ratings |
+
+
+