BF-WAB / test_final.py
SamiKoen's picture
Upload 7 files
4fa4ebe verified
raw
history blame contribute delete
830 Bytes
#!/usr/bin/env python3
# Final test with updated get_warehouse_stock function from app.py
import sys
import os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Import the updated function from app.py
from app import get_warehouse_stock
if __name__ == "__main__":
test_cases = [
"M Turuncu",
"Marlin 6 M Turuncu",
"L Siyah",
"S Beyaz"
]
for test_case in test_cases:
print(f"\n=== Testing: {test_case} ===")
try:
result = get_warehouse_stock(test_case)
if result:
print("Sonuç:")
for item in result:
print(f" • {item}")
else:
print("Sonuç bulunamadı")
except Exception as e:
print(f"Hata: {e}")
print("-" * 50)