def setUp(self, *args):
     super(TestFollowingSendGift, self).setUp(user_id=self.user_id,
                                              anchor_id=self.anchor_id)
     TearDown().send_gift_teardown(login_name=self.login_name,
                                   anchor_id=self.anchor_id,
                                   user_id=self.user_id,
                                   room_id=self.room_id)
 def setUp(self,*args):
     super(TestNormalAdminAddBlackApi, self).setUp(user_id=self.user_id,anchor_id=self.anchor_id)
     del_super_visor_api = DelSuperVisorApi(self.anchor_login_name)
     del_super_visor_api.get({'user_id': self.normal_admin_user_id, 'anchor_id': self.anchor_id})
     TearDown().guard_teardown(user_id=self.user_id, anchor_id=self.anchor_id)
     MysqlOperation(user_id=self.user_id).clean_black_user()
     Redis().clean_black_user(self.anchor_id)
Beispiel #3
0
 def tearDown(self, *args):
     super(TestSendNobleGift, self).tearDown(user_id=self.user_id,
                                             anchor_id=self.anchor_id)
     MysqlOperation(user_id=self.user_id).clean_user_noble()
     TearDown().send_gift_teardown(anchor_id=self.anchor_id,
                                   user_id=self.user_id,
                                   room_id=self.room_id,
                                   following=False)
Beispiel #4
0
 def tearDown(self, *args):
     super(TestSendPackageGift, self).tearDown(user_id=self.user_id,
                                               anchor_id=self.anchor_id)
     TearDown().send_gift_teardown(login_name=self.login_name,
                                   anchor_id=self.anchor_id,
                                   user_id=self.user_id,
                                   room_id=self.room_id)
     time.sleep(self.time_sleep)
 def tearDown(self, *args):
     super(TestAnchorAddBlackApi, self).tearDown(user_id=self.user_id,
                                                 anchor_id=self.anchor_id)
     TearDown().guard_teardown(login_name=self.user_login_name,
                               user_id=self.user_id,
                               anchor_id=self.anchor_id)
     MysqlOperation(user_id=self.user_id).clean_black_user()
     Redis().clean_black_user(self.anchor_id)
Beispiel #6
0
 def setUp(self,*args):
     super(TestAnchorGroupRobApi,self).setUp(user_id=[self.user_id,self.rob_user_id],anchor_id=anchor_id)
     for id in [self.user_id,self.rob_user_id]:
         TearDown().guard_teardown(user_id=id, anchor_id=anchor_id)
         mysql_operation = MysqlOperation(user_id=id)
         mysql_operation.clean_user_anchor_group()
         MysqlOperation(user_id=id).clean_user_anchor_group()
         Redis().clean_user_buy_guard(id, anchor_id)
         RedisHold().clean_redis_room_detail(room_id, anchor_id)
 def tearDown(self,*args):
     super(TestNormalAdminAddBlackApi, self).tearDown(user_id=self.user_id,anchor_id=self.anchor_id)
     del_super_visor_api = DelSuperVisorApi(self.anchor_login_name)
     del_super_visor_api.get({'user_id': self.normal_admin_user_id, 'anchor_id': self.anchor_id})
     TearDown().guard_teardown(user_id=self.user_id, anchor_id=self.anchor_id)
     MysqlOperation(user_id=self.user_id).clean_black_user()
     Redis().clean_black_user(self.anchor_id)
     # RedisHold().clean_redis_user_detail(self.user_id)
     # time.sleep(self.time_sleep)
Beispiel #8
0
 def setUp(self, *args):
     super(TestAnchorGroupAnchorNumApi, self).setUp(user_id=self.user_id,
                                                    anchor_id=anchor_id)
     TearDown().guard_teardown(login_name=self.user_login_name,
                               user_id=self.user_id,
                               anchor_id=anchor_id)
     mysql_operation = MysqlOperation(user_id=self.user_id)
     mysql_operation.clean_user_anchor_group()
     Redis().clean_anchor_group(self.user_id, anchor_id=anchor_id)
     RedisHold().clean_redis_room_detail(room_id, anchor_id)
 def tearDown(self, *args):
     super(TestListCanBeAddApi, self).tearDown(user_id=self.user_id,
                                               anchor_id=anchor_id)
     TearDown().guard_teardown(login_name=self.user_login_name,
                               user_id=self.user_id,
                               anchor_id=anchor_id)
     user_id = self.user_id
     for i in [user_id, anchor_id]:
         MysqlOperation(user_id=i).clean_user_anchor_group()
     Redis().clean_user_buy_guard(user_id, anchor_id)
     Redis().clean_anchor_group(user_id, anchor_id)
Beispiel #10
0
 def setUp(self, *args):
     super(TestAddAnchorToGroupApi, self).setUp(user_id=self.user_id,
                                                anchor_id=anchor_id)
     TearDown().guard_teardown(login_name=self.user_login_name,
                               user_id=self.user_id,
                               anchor_id=anchor_id)
     user_id = self.user_id
     mysql_operation = MysqlOperation(user_id=user_id)
     mysql_operation.clean_user_anchor_group()
     Redis().clean_anchor_group(user_id, anchor_id)
     Redis().clean_user_buy_guard(user_id, anchor_id)
 def setUp(self, *args):
     super(TestOpenAnchorGroup, self).setUp(user_id=self.user_id,
                                            anchor_id=anchor_id)
     TearDown().guard_teardown(login_name=self.user_login_name,
                               user_id=self.user_id,
                               anchor_id=anchor_id)
     user_id = self.user_id
     mysql_operation = MysqlOperation(user_id=user_id)
     mysql_operation.fix_anchor_group_gold()
     mysql_operation.clean_user_anchor_group()
     Redis().clean_anchor_group(user_id, anchor_id)
Beispiel #12
0
 def tearDown(self, *args):
     super(TestAddAnchorToGroupApi, self).tearDown(user_id=self.user_id,
                                                   anchor_id=anchor_id)
     TearDown().guard_teardown(login_name=self.user_login_name,
                               user_id=self.user_id,
                               anchor_id=anchor_id)
     Redis().clean_anchor_group(self.user_id, anchor_id)
     for i in [self.user_id, anchor_id]:
         MysqlOperation(user_id=i).clean_user_anchor_group()
     Redis().clean_user_buy_guard(self.user_id, anchor_id)
     RedisHold().clean_redis_room_detail(room_id, anchor_id)
Beispiel #13
0
 def tearDown(self,*args):
     super(TestAnchorGroupWithdrawApi,self).tearDown(user_id=self.user_id,anchor_id=anchor_id)
     TearDown().guard_teardown(login_name=self.user_login_name,user_id=self.user_id,anchor_id=anchor_id)
     user_id = self.user_id
     mysql_operation = MysqlOperation(user_id=user_id,anchor_id=anchor_id)
     mysql_operation.clean_user_anchor_group()
     Redis().clean_anchor_group(user_id, anchor_id=anchor_id)
     mysql_operation.clean_user_anchor_group()
     Redis().clean_user_buy_guard(user_id, anchor_id)
     mysql_operation.clean_send_gift()
     RedisHold().clean_redis_room_detail(room_id, anchor_id)
 def tearDown(self,*args):
     super(TestBindPhoneApi,self).tearDown(user_id=self.user_id)
     TearDown().bind_phone_teardown(user_id=self.user_id, login_name=self.user_name,mobile_phone=self.user_name,phone_confirm=1)
Beispiel #15
0
 def tearDown(self,*args):
     super(TestSendGuardGift,self).tearDown(user_id=self.user_id,anchor_id=self.anchor_id)
     TearDown().guard_teardown(login_name=self.login_name, user_id=self.user_id, anchor_id=self.anchor_id)
     TearDown().send_gift_teardown(anchor_id=self.anchor_id, user_id=self.user_id,room_id=self.room_id,following=False)
     # time.sleep(self.time_sleep)
 def tearDown(self, *args):
     super(TestPlatSigninApi, self).tearDown(user_id=self.user_id)
     TearDown().platform_signin_teardown(self.user_id)
 def setUp(self,*args):
     super(TestUpdateNickApi, self).setUp(user_id=[self.user_id,self.anchor_id])
     TearDown().update_nickname_api_teardown(self.user_id,rename_num=1,nick_name='dongci')
     TearDown().update_nickname_api_teardown(self.anchor_id, rename_num=1, nick_name='YaTo_猫小艺')
 def tearDown(self,*args):
     super(TestSendGift,self).tearDown(user_id=self.user_id,anchor_id=self.anchor_id)
     TearDown().send_gift_teardown(login_name=None, anchor_id=self.anchor_id, user_id=self.user_id,room_id=self.room_id, following=False)
 def setUp(self, *args):
     super(TestExchangeApi, self).setUp(user_id=self.user_id)
     TearDown().gold_exchange_diamond_teardowm(self.user_id)
 def setUp(self, *args):
     super(TestBindPhoneApi, self).setUp(user_id=self.user_id)
     TearDown().bind_phone_teardown(user_id=self.user_id,
                                    login_name=self.user_name)
 def tearDown(self, *args):
     super(TestReportUserApi, self).tearDown()
     TearDown().report_anchor(self.user_id)
Beispiel #22
0
 def tearDown(self,*args):
     super(TestSendRedPackageApi,self).tearDown(user_id=self.user_id,anchor_id=self.anchor_id)
     TearDown().send_red_package_teardown(room_id=self.room_id, user_id=self.user_id, anchor_id=self.anchor_id)
 def tearDown(self, *args):
     super(TestRegisterApi, self).tearDown()
     try:
         TearDown().register_teardown(self.mobile)
     except:
         pass
 def tearDown(self, *args):
     super(TestChangeMobileApi, self).tearDown()
     TearDown().change_mobile_teardown(new_mobile=self.new_mobile,
                                       login_name=self.login_name,
                                       mobile_phone=self.login_name)
 def tearDown(self, *args):
     super(TestBuyNoble, self).tearDown(user_id=self.user_id)
     TearDown().noble_teardown(user_id=self.user_id)
 def tearDown(self,*args):
     super(TestBuyGuardApi,self).tearDown(user_id=self.user_id,anchor_id=self.anchor_id)
     TearDown().guard_teardown(login_name=self.login_name,user_id=self.user_id,anchor_id=self.anchor_id,following=True)
 def tearDown(self, *args):
     super(TestRegisterApi, self).tearDown()
     TearDown().register_teardown(self.mobile)
Beispiel #28
0
 def setUp(self, *args):
     super(TestBuyNobleRenew, self).setUp(user_id=self.user_id)
     TearDown().noble_teardown(user_id=self.user_id)
 def setUp(self, *args):
     super(TestBuyGuardRenewApi, self).setUp(user_id=self.user_id,
                                             anchor_id=self.anchor_id)
     TearDown().guard_teardown(login_name=self.login_name,
                               user_id=self.user_id,
                               anchor_id=self.anchor_id)
Beispiel #30
0
 def tearDown(self, *args):
     super(TestUserGetSunApi, self).tearDown(user_id=self.user_id)
     TearDown().get_sun_api_teardown(self.user_id)