File size: 875 Bytes
3f44417
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
# Test new B2B API with updated function

import sys
import os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

from app import get_warehouse_stock

if __name__ == "__main__":
    test_cases = [
        "M Turuncu",           # Should find M Turuncu variants
        "Marlin M Turuncu",    # Should find Marlin M Turuncu variants  
        "L Turuncu",           # Should find L Turuncu variants
    ]
    
    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)