class Test_OrderList(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_order_list(self): res = self.client.get_order_list() print res
class Order_Prize(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_order_prize(self): res = self.client.order_prize('56824b7605d6b80001b89e85', 'alipay') print res
class Order_Prize(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_order_prize(self): res = self.client.order_prize('56824b7605d6b80001b89e85', 'alipay') print res
class Test_OrderList(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_order_list(self): res = self.client.get_order_list() print res
class Test_Goods_Info(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_order_info(self): res = self.client.goods_info('56824b7605d6b80001b89e85',json.dumps(['56a83568d19af7405f95858b','569de05ad19af7405f95845a','569de006d19af7405f95841d'])) print res
class Test_Preoder_Schedule(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_preorder_schedule(self): res = self.client.preorder_schedule('56824b7605d6b80001b89e85:566e800738a2127e2686f9f8') print res #预约订单
class Test_Preoder_Schedule(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_preorder_schedule(self): res = self.client.preorder_schedule( '56824b7605d6b80001b89e85:566e800738a2127e2686f9f8') print res
class Test_Goods_Info(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_order_info(self): res = self.client.goods_info( '56824b7605d6b80001b89e85', json.dumps([ '56a83568d19af7405f95858b', '569de05ad19af7405f95845a', '569de006d19af7405f95841d' ])) print res
class Test_Submit(unittest.TestCase): goods = [ { 'goodid':'569de05ad19af7405f958450', 'num':1, } ] def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_submit(self): res = self.client.submit(u'可以可以哦', '56a73b0838a2124120281928', self.goods, 116.4981588380420, 39.91425930620188, '13801111111', 'ddd', '56824b7605d6b80001b89e85:566e800738a2127e2686f9f8', 'alipay') print res #提交订单支付
class Test_Submit(unittest.TestCase): goods = [{ 'goodid': '569de05ad19af7405f958450', 'num': 1, }] def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_submit(self): res = self.client.submit( u'可以可以哦', '56a73b0838a2124120281928', self.goods, 116.4981588380420, 39.91425930620188, '13801111111', 'ddd', '56824b7605d6b80001b89e85:566e800738a2127e2686f9f8', 'alipay') print res
class TestRegist(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') def test_signup(self): res = self.client.login('15011431186') print res
class Test_order_presubmit(unittest.TestCase): goods = [ { 'goodid':'569de05ad19af7405f958450', 'num':1, } ] def setUp(self): self.client = SharkClient('debug') self.client.login('15011431186') def test_order_presubmit(self): res = self.client.presubmit('56824b7605d6b80001b89e85:566e800738a2127e2686f9f8',self.goods) print res
class TestRegist(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') def test_signup(self): res = self.client.login('15011431186') print res