Subversion Repositories SmartDukaan

Rev

Rev 3503 | Rev 4332 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3503 Rev 4024
Line 7... Line 7...
7
from shop2020.utils.Utils import to_java_date, to_py_date
7
from shop2020.utils.Utils import to_java_date, to_py_date
8
from shop2020.model.v1.catalog.impl.DataAcessors import validate_item_prices, validate_vendor_prices
8
from shop2020.model.v1.catalog.impl.DataAcessors import validate_item_prices, validate_vendor_prices
9
 
9
 
10
 
10
 
11
inventory_client = CatalogClient()
11
inventory_client = CatalogClient()
12
 
-
 
13
inventory_client.__start__()
-
 
14
 
-
 
15
client = inventory_client.get_client()
12
client = inventory_client.get_client()
16
"""
13
"""
17
#deals = client.getBestDeals()
14
#deals = client.getBestDeals()
18
#print deals
15
#print deals
19
 
16
 
Line 119... Line 116...
119
    print client.isAlive()
116
    print client.isAlive()
120
 
117
 
121
def test_get_availability_at_location():
118
def test_get_availability_at_location():
122
    print client.getItemAvailabilityAtLocation(0, 1)
119
    print client.getItemAvailabilityAtLocation(0, 1)
123
    
120
    
-
 
121
def test_get_pending_orders_inventory():
-
 
122
    print client.getPendingOrdersInventory()
-
 
123
    
124
if __name__ == '__main__':
124
if __name__ == '__main__':
125
    time = to_py_date(datetime.datetime.now())
125
    time = to_py_date(datetime.datetime.now())
126
    #test_validate()
126
    #test_validate()
127
    #test_similar_item()
127
    #test_similar_item()
128
    #test_change_item_status()
128
    #test_change_item_status()
Line 130... Line 130...
130
    #test_logging(5, True)
130
    #test_logging(5, True)
131
    #test_update_similarity_index()
131
    #test_update_similarity_index()
132
    #test_get_best_deal_catalog_ids()
132
    #test_get_best_deal_catalog_ids()
133
    #test_get_all_items()
133
    #test_get_all_items()
134
    #test_is_alive()
134
    #test_is_alive()
135
    test_get_availability_at_location()
-
 
136
135
    #test_get_availability_at_location()
-
 
136
    test_get_pending_orders_inventory()
-
 
137
137
138