smlparry commited on
Commit ·
b730691
1
Parent(s): dc75597
Add test
Browse files- __pycache__/handler.cpython-310.pyc +0 -0
- test.py +13 -0
__pycache__/handler.cpython-310.pyc
ADDED
|
Binary file (1.55 kB). View file
|
|
|
test.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from handler import EndpointHandler
|
| 2 |
+
|
| 3 |
+
# Initialize handler
|
| 4 |
+
my_handler = EndpointHandler()
|
| 5 |
+
|
| 6 |
+
# Prepare sample payload
|
| 7 |
+
sample_payload = {
|
| 8 |
+
"image_url": "https://fitter-app.imgix.net/https%3A%2F%2Ffitter-uploads-prod.s3.ap-southeast-2.amazonaws.com%2Fuploads%2F2%2F24fe70d4-ec4e-4d3c-bae5-fc8ac689ee3f.jpg?ixlib=rb-4.0.0&fit=crop&fm=png&auto=compress&w=1080&h=720&crop=focalpoint&fp-x=0.5&fp-y=0.5&fp-z=1.0&s=6664946657e1f7325c08aa5d89978470" # Replace with a real image URL
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
# Test the handler
|
| 12 |
+
result = my_handler(sample_payload)
|
| 13 |
+
print(result)
|