def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() self.zl = make_date(self.driver) self.zl.user_suoyzc_dengz(value="1000", card_value='pc服务器')
def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() #初始化driver self.driver = BrowserEngine().init_driver() self.driver.get('http://58.246.240.154:7878/zl/179333') self.driver.maximize_window() self.login = LoginPage(self.driver)
def setUpClass(cls): #print("setupclass") print(parames) cls.driver = BrowserEngine(parames).start_browser() cls.rp = RegisterPage(cls.driver) cls.log = LogRecord() cls.logger = cls.log.log_record()
def setUpClass(cls): cls.log = UserLog() cls.logger = cls.log.get_log() #初始化driver cls.driver = BrowserEngine().init_driver() cls.driver.get('http://58.246.240.154:7878/zl/179333') cls.driver.maximize_window()
class Testchengzu(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("出租") self.zl = make_date(self.driver) def teardown(self): self.driver.refresh() def teardown_sclass(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #承租——续租 def test_chenz_xvzu_01(self): self.zl.unit_chengzu.xinz() self.zl.unit_chengzu.jiaofu() success = self.zl.unit_chengzu.xvzu_success() assert success == True #承租——退还 def test_chenz_tuihuan_01(self): self.zl.unit_chengzu.xinz() self.zl.unit_chengzu.jiaofu() success = self.zl.unit_chengzu.tuih_success() assert success == True #承租完成的再次续租 self.zl.handle.refresh_f5() success = self.zl.unit_chengzu.zaicxz_success() assert success == True #承租——批量退还 def test_chenz_tuihuan_02(self): self.zl.unit_chengzu.xinz() self.zl.unit_chengzu.jiaofu() success = self.zl.unit_chengzu.pilth() assert success == True
class TestFenpCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() #前置 def setup(self): self.logger.info("分配") self.zl = make_date(self.driver) self.zl.unit_suoyzc_wdengz() def teardown(self): self.driver.refresh() def teardown_class(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #单位分配资产至部门 def test_danw_fp_bum_shouh(self): self.zl.unit_fenp.fenp("部门") #检测点:部门收货 success = self.zl.dep_shouy.receipt_success() assert success == True #单位分配资产至使用人 def test_danw_fp_shiyr_shouh(self): self.zl.unit_fenp.fenp("使用人") #检测点:使用人收货 success = self.zl.user_shouy.receipt_success("确认收货") assert success == True #部门分配资产 def test_bum_fp_bum_shouh(self): self.zl.unit_fenp.fenp("部门") self.zl.dep_shouy.receipt("确认收货") self.zl.dep_fenp.fenp("使用人") #检测点:使用人收货 success = self.zl.user_shouy.receipt_success("确认收货") assert success == True
class TestGuihCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("归还") self.zl = make_date(self.driver) self.zl.unit_suoyzc_wdengz() def teardown(self): self.driver.refresh() def teardown_class(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #使用人归还-部门收货 def test_shiyr_guih_bum_shouh(self): self.zl.unit_fenp.fenp("使用人") self.zl.user_shouy.receipt("确认收货") self.zl.user_guih.guih_pass() #检查点:部门收货归还的卡片 success = self.zl.dep_shouy.receipt_success() assert success == True #部门归还-单位收货 def test_bum_guih_danw_shouh(self): self.zl.unit_fenp.fenp("部门") self.zl.dep_shouy.receipt("确认收货") self.zl.dep_guih.guih_pass() #检查点:单位收货归还的卡片 success = self.zl.unit_shouy.receipt_success() assert success == True
class TestLoginCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() #初始化driver self.driver = BrowserEngine().init_driver() self.driver.get('http://58.246.240.154:7878/zl/179333') self.driver.maximize_window() self.login = LoginPage(self.driver) def teardown_class(self): self.log.close_handle() time.sleep(2) self.driver.close() def setup(self): self.logger.info("this is chrome") def teardown(self): self.driver.refresh() #用户名不存在 def test_login_name_error(self): name_error = self.login.login_name_error("s", "123") assert name_error == True #用户名为空 def test_login_name_none_error(self): name_none_error = self.login.login_name_none("1") assert name_none_error == True #密码错误 def test_login_password_error(self): password_error = self.login.login_password_error("ss", "1") assert password_error == True #密码为空 def test_login_password_none_error(self): password_none_error = self.login.login_password_none("ss") assert password_none_error == True #通过 def test_login_success(self): success = self.login.login_success("ss", "123") assert success == True
def enter_upload_page(self): self.open() self.click_element(self.get_share_kng_btn_element()) self.switch_window() def enter_upload_scorm_page(self): self.open() self.move_to_target(self.get_share_kng_btn_element()) self.click_element(self.get_scorm_upload_btn()) self.switch_window() def enter_upload_html_page(self): self.open() self.move_to_target(self.get_share_kng_btn_element()) self.click_element(self.get_html_upload_btn()) self.switch_window() def delete_file(self): self.move_to_target(self.get_first_edit_btn_element()) self.click_element(self.get_first_delete_btn_element()) al = self.switch_alert() al and al.accept() self.get_ele.wait_element_disappear("loading_status", "kng_element") if __name__ == "__main__": driver = BrowserEngine("chrome").start_browser() log = LogRecord() logger = log.log_record()
def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login()
def setUpClass(cls): cls.log = UserLog() cls.logger = cls.log.get_log() cls.driver = BrowserEngine().init_driver() LoginPage(cls.driver).cookie_login()
class TestZhuanyCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("转移流程") self.zl = make_date(self.driver) self.zl.unit_suoyzc_wdengz() def teardown(self): self.driver.refresh() def teardown_class(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #单位转移资产至部门-部门收货 def test_danw_zhuany_bum_shouh(self): self.zl.unit_shouy.apply_business("申请转移") self.zl.unit_zhuany.zhuany("部门") #检查点:部门收货单位转移的资产 success = self.zl.dep_shouy.receipt_success() assert success == True #单位转移资产至使用人-使用人收货 def test_danw_zhuany_shiyr_shouh(self): self.zl.unit_shouy.apply_business("申请转移") self.zl.unit_zhuany.zhuany("使用人") #检查点:使用人收货单位转移的资产 success = self.zl.user_shouy.receipt_success("确认收货") assert success == True #部门转移资产-使用人收货 def test_bum_zhuany_shiyr_shouh(self): self.zl.unit_shouy.apply_business("申请转移") self.zl.unit_zhuany.zhuany("部门") self.zl.dep_shouy.receipt("确认收货") self.zl.dep_shouy.apply_business("申请转移") self.zl.dep_zhuany.zhuany("使用人") #检查点:使用人收货部门转移的资产 success = self.zl.user_shouy.receipt_success("确认收货") assert success == True #使用人转移资产-使用人收货 def test_shiyr_zhuany_shiyr_shouh(self): self.zl.unit_shouy.apply_business("申请转移") self.zl.unit_zhuany.zhuany("使用人") self.zl.handle.refresh_f5() self.zl.user_shouy.receipt("确认收货") self.zl.user_shouy.apply_business("申请转移") self.zl.user_zhuany.zhuany("使用人") #检查点:使用人收货使用人转移的资产 self.zl.handle.refresh_f5() success = self.zl.user_shouy.receipt_success("确认收货") assert success == True
class TestUnitWeixCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() self.zl = make_date(self.driver) self.zl.unit_suoyzc_dengz(value="1000", card_value='pc服务器') self.driver.refresh() def setup(self): self.logger.info("维修") def teardown(self): self.driver.refresh() def teardown_class(self): self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #单位申请维修-单位同意 def test_danw_faq_danw_ty(self): self.zl.unit_shouy.apply_business("申请报修") # 单位申请报修 self.zl.unit_weix.weix_ss("同意") self.driver.refresh() self.zl.unit_weix.weix_yans(1000) # 单位验收 self.driver.refresh() time.sleep(2) success = self.zl.fin_weix.weix_dengz_success("资本化") # 财务登账 assert success == True jiaz_success = self.zl.unit_shouy.get_jiaz() # 获取卡片价值 assert jiaz_success == "2000.00" # 费用化登账后价值不增加 # 单位 在卡片操作栏申请报修 # 流程中卡片发起报修 def test_unit_weix_caoz_faq(self): self.driver.refresh() success = self.zl.unit_shouy.apply_business_success( "操作_申请报修") # 单位 在卡片操作栏申请报修 assert success == True success = self.zl.unit_shouy.apply_weix_error() # 流程中卡片发起报修 assert success == True
class TestShouhCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("收回") self.zl = make_date(self.driver) self.zl.unit_suoyzc_wdengz() def teardown(self): self.driver.refresh() def teardown_class(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #部门收回卡片 def test_bum_shouh(self): self.zl.unit_fenp.fenp("使用人") # 单位分配给使用人 self.zl.dep_shouy.receipt("确认收货") # 部门收货 self.driver.refresh() #检测点:部门收回卡片成功 success = self.zl.dep_shouh.take_back_success() assert success == True #部门全部收回卡片 def test_bum_shouh_all(self): self.zl.unit_fenp.fenp("使用人") # 单位分配给使用人 self.zl.dep_shouy.receipt("确认收货") # 部门收货 self.driver.refresh() #检查点:部门全部收回卡片成功 success = self.zl.dep_shouh.all_take_back_success() assert success == True #单位收回卡片 def test_danw_shouh(self): self.zl.unit_fenp.fenp("使用人") self.zl.unit_shouy.receipt("确认收货") self.driver.refresh() #检查点:单位收回卡片成功 success = self.zl.unit_shouh.take_back_success() assert success == True #单位全部收回卡片 def test_danw_shouh_all(self): self.zl.unit_fenp.fenp("使用人") # 分配至使用人 self.zl.user_shouy.receipt("确认收货") # 使用人收货 self.driver.refresh() #检查点:单位全部收回卡片成功 success = self.zl.unit_shouh.all_take_back_success() # 单位收回 assert success == True
class TestYansglCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("验收") self.zl = make_date(self.driver) def teardown(self): self.driver.refresh() def teardown_class(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #部门新增资产 def test_bum_add_new_card(self): self.zl.dep_yans.add_card(value="1000", card_value="PC服务器") self.zl.dep_yans.start_acceptance() self.driver.refresh() success = self.zl.dep_yans.yansgl_pass_success() assert success == True #部门新增同类型资产 def test_bum_add_card(self): self.zl.dep_yans.add_card(value="1000") self.zl.dep_yans.start_acceptance() self.driver.refresh() success = self.zl.dep_yans.yansgl_pass_success() assert success == True #单位新增资产 def test_danw_add_new_card(self): self.zl.unit_yans.add_card(value="1000", card_value="PC服务器") self.zl.unit_yans.start_acceptance() self.driver.refresh() success = self.zl.unit_yans.yansgl_pass_success() assert success == True #单位新增同类型资产 def test_danw_add_card(self): self.zl.unit_yans.add_card(value="1000", card_value="PC服务器") self.zl.unit_yans.start_acceptance() self.driver.refresh() success = self.zl.unit_yans.yansgl_pass_success() assert success == True
class TestDengzCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("登账") self.zl = make_date(self.driver) #前置:单位资产管理员新增未登账卡片 self.zl.unit_suoyzc_wdengz() time.sleep(2) def teardown(self): self.driver.refresh() def tearDownClass(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #送财务登账-不填发票号-财务登账 def test_danw_dengz_butfp_caiw_dengz(self): self.driver.refresh() self.zl.unit_dengz.songcw() time.sleep(1) self.driver.refresh() time.sleep(1) success = self.zl.fin_dengz.dengz_success() assert success == True #送财务登账-填发票号-财务退回 def test_danw_dengz_tianfp_caiw_tui(self): self.driver.refresh() self.zl.unit_dengz.songcw(1000) time.sleep(2) self.driver.refresh() success = self.zl.fin_dengz.tuih_success() assert success == True
class TestShenlCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("配置管理") self.zl = make_date(self.driver) def teardown(self): self.driver.refresh() def teardown_class(self): time.sleep(2) self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #使用人申领-部门退回 def test_shiyr_sl_bum_th(self): self.zl.user_shenl.shenl_xinz("PC服务器") self.zl.user_shenl.shenl_tj() time.sleep(3) self.driver.refresh() success = self.zl.dep_peiz.peiz_ss_success("退回") assert success == True #使用人申领-部门同意 def test_shiyr_sl_bum_ty(self): self.zl.user_shenl.shenl_xinz("PC服务器") self.zl.user_shenl.shenl_tj() time.sleep(3) self.driver.refresh() success = self.zl.dep_peiz.peiz_ss_success("同意") assert success == True #使用人申领-部门不同意 def test_shiyr_sl_bum_bty(self): self.zl.user_shenl.shenl_xinz("PC服务器") self.zl.user_shenl.shenl_tj() time.sleep(3) self.driver.refresh() success = self.zl.dep_peiz.peiz_ss_success("不同意") assert success == True #使用人申领-部门送审-单位退回 def test_shiyr_sl_bum_ss_danw_th(self): self.zl.user_shenl.shenl_xinz("PC服务器") self.zl.user_shenl.shenl_tj() self.zl.dep_peiz.peiz_ss("送审") time.sleep(3) self.driver.refresh() success = self.zl.unit_peiz.peiz_ss_success("退回") assert success == True #使用人申领-部门送审-单位同意 def test_shiyr_sl_bum_ss_danw_ty(self): self.zl.user_shenl.shenl_xinz("PC服务器") self.zl.user_shenl.shenl_tj() self.zl.dep_peiz.peiz_ss("送审") time.sleep(3) self.driver.refresh() success = self.zl.unit_peiz.peiz_ss_success("同意") assert success == True #使用人申领-部门送审-单位不同意 def test_shiyr_sl_bum_ss_danw_bty(self): self.zl.user_shenl.shenl_xinz("PC服务器") self.zl.user_shenl.shenl_tj() self.zl.dep_peiz.peiz_ss("送审") time.sleep(3) self.driver.refresh() success = self.zl.unit_peiz.peiz_ss_success("不同意") assert success == True #部门申领-单位同意 def test_bum_sl_danw_ty(self): self.zl.dep_peiz.peiz_tj("PC服务器") time.sleep(3) self.driver.refresh() self.zl.dep_peiz.peiz_ss("送审") time.sleep(3) self.driver.refresh() success = self.zl.unit_peiz.peiz_ss_success("同意") assert success == True
settings.PIC_RATIO * right, settings.PIC_RATIO * bottom)) img.save(settings.CODE_LOC) def distinguish_with_pytesseract(self): im = Image.open(settings.CODE_LOC) text = pytesseract.image_to_string(im) return text def distinguish(self): r = ShowapiRequest("http://route.showapi.com/184-4", "94789", "6de63c760b684ad1a928d0158cfaef95") r.addBodyPara("typeId", "34") r.addBodyPara("convert_to_jpg", "0") r.addBodyPara("needMorePrecise", "0") r.addFilePara("image", settings.CODE_LOC) #文件上传时设置 res = r.post() return res.json()["showapi_res_body"]["Result"] if __name__ == "__main__": driver = BrowserEngine("chrome").start_browser() log = LogRecord() logger = log.log_record() h = HandleCaptcha(driver, logger) driver.get("http://jgtest.qida.yunxuetang.com.cn/login.htm") get_ele = GetElement(driver, logger) get_ele.get_element("sms_login_type", "login_element").click() code = get_ele.get_element("code_img", "login_element") h.handle_captcha(code) #print(h.distinguish())
def setUpClass(cls): #清除以前的测试结果 op_db.sql_DML(settings.CLEAR_RESULT_SQL) #cls.driver = BrowserEngine(parames).start_browser() cls.driver = BrowserEngine("chrome").start_browser()
class TestUserWeixCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() self.zl = make_date(self.driver) self.zl.user_suoyzc_dengz(value="1000", card_value='pc服务器') def setup(self): self.logger.info("维修") def teardown(self): self.driver.refresh() def teardown_class(self): self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #使用人申请维修-部门同意-费用化登账 # 资本化登账后价值增加 def test_shiyr_weix_bum_ty(self): self.zl.user_shouy.apply_business("申请报修") # 使用人申请报修 self.driver.refresh() self.zl.user_weix.weix_ss("提交申请") # 使用人提交报修单 success = self.zl.dep_weix.weix_ss_success("同意") # 部门同意 assert success == True self.driver.refresh() self.zl.user_weix.weix_yans(1000) # 使用人维修验收 self.driver.refresh() time.sleep(2) success = self.zl.fin_weix.weix_dengz_success("资本化") # 财务登账 assert success == True jiaz_success = self.zl.user_shouy.get_jiaz() # 获取卡片价值 assert jiaz_success == "2000.00" # 资本化登账后价值增加 #使用人申请维修-部门不同意 def test_shiyr_weix_bum_bty(self): self.zl.user_shouy.apply_business("申请报修") # 使用人申请报修 self.driver.refresh() self.zl.user_weix.weix_ss("提交申请") # 使用人提交报修单 self.driver.refresh() success = self.zl.dep_weix.weix_ss_success("不同意") # 部门不同意 assert success == True #使用人申请维修-部门送审-单位同意 # 费用化登账后价值不增加 def test_shiyr_weix_bum_ss_danw_ty(self): self.zl.user_shouy.apply_business("申请报修") # 使用人申请报修 self.driver.refresh() self.zl.user_weix.weix_ss("提交申请") # 使用人提交报修单 self.zl.dep_weix.weix_ss("送审") # 部门送审 self.driver.refresh() self.zl.unit_weix.weix_ss("同意") # 单位同意 self.driver.refresh() self.zl.user_weix.weix_yans(1000) # 使用人维修验收 self.driver.refresh() time.sleep(2) success = self.zl.fin_weix.weix_dengz_success("资本化") # 财务登账 assert success == True jiaz_success = self.zl.user_shouy.get_jiaz() # 获取卡片价值 assert jiaz_success == "3000.00" # 费用化登账后价值不增加 #使用人申请维修-单位不同意 def test_shiyr_weix_bum_ss_danw_bty(self): self.zl.user_shouy.apply_business("申请报修") # 使用人申请报修 self.driver.refresh() self.zl.user_weix.weix_ss("提交申请") # 使用人提交报修单 self.zl.dep_weix.weix_ss("送审") # 部门送审 self.driver.refresh() success = self.zl.unit_weix.weix_ss_success("不同意") # 单位不同意 assert success == True # 使用人 在卡片操作栏申请报修 # 流程中卡片发起报修 def test_shiyr_weix_caoz_faq(self): self.driver.refresh() success = self.zl.user_shouy.apply_business_success( "操作_申请报修") # 使用人 在卡片操作栏申请报修 assert success == True success = self.zl.user_shouy.apply_weix_error() # 流程中卡片发起报修 assert success == True #删除维修申请 def test_shiyr_shanc_01(self): success = self.zl.user_weix.weix_sahnc_success() # 删除维修单 assert success == True #业务操作删除维修申请 def test_shiyr_shanc_02(self): self.zl.user_shouy.apply_business("申请报修") success = self.zl.user_weix.weix_yewcz_sahnc_success() # 业务操作删除维修申请 assert success == True #选择当前页删除 def test_shiyr_shanc_03(self): self.zl.user_shouy.apply_business("申请报修") success = self.zl.user_weix.weix_dangqy_sahnc_success() # 选择当前页删除 assert success == True #添加资产成功 def test_shiyr_add_card_success(self): success = self.zl.user_weix.add_assets_success() assert success == True #修改维修方式成功 def test_shiyr_change_mode_success(self): success = self.zl.user_weix.change_mode_success("换货") assert success == True #修改维修原因成功 def test_shiyr_weix_reason_success(self): success = self.zl.user_weix.weix_reason_success("测试维修原因") assert success == True
class TestChuzCase(): def setup_class(self): self.log = UserLog() self.logger = self.log.get_log() self.driver = BrowserEngine().init_driver() LoginPage(self.driver).cookie_login() def setup(self): self.logger.info("出租") self.zl = make_date(self.driver) self.zl.unit_suoyzc_dengz() self.zl.handle.refresh_f5() def teardown(self): self.driver.refresh() def teardown_class(self): self.log.close_handle() time.sleep(2) self.driver.close() time.sleep(2) #单位出租 def test_chuzu_danw_faq_danw_zhix(self): self.zl.unit_shouy.apply_business("申请出租") self.zl.unit_chuzu.chuzu_scdj() # 生成单据 self.zl.unit_chuzu.chuzu_ss() # 送审 self.zl.unit_chuzu.chuzu_zhix() # 执行 self.zl.unit_chuzu.chuzu_shouyi("送财务部门") self.zl.unit_chuzu.chuzu_shouh() success = self.zl.fin_shouy.shouy_dengz_success() assert success == True #单位出借 def test_chujie_danw_faq_danw_zhix(self): self.zl.unit_shouy.apply_business("申请出借") self.zl.unit_chuzu.chuzu_scdj() # 生成单据 self.zl.unit_chuzu.chuzu_ss() # 送审 self.zl.unit_chuzu.chuzu_zhix() # 执行 self.zl.unit_chuzu.chuzu_shouyi("送财务部门") self.zl.unit_chuzu.chuzu_shouh() success = self.zl.fin_shouy.shouy_dengz_success() assert success == True #添加资产 #出租 def test_addcard_chuz(self): success = self.zl.unit_chuzu.chuzu_addcard_success("出租") assert success == True success = self.zl.unit_chuzu.quxiao_success() assert success == True #添加资产 #出借 def test_addcard_chuj(self): success = self.zl.unit_chuzu.chuzu_addcard_success("出借") assert success == True success = self.zl.unit_chuzu.quxiao_success() assert success == True #操作栏取消单据 def test_caoz_qux(self): success = self.zl.unit_chuzu.chuzu_addcard_success("出租") assert success == True success = self.zl.unit_chuzu.caoz_qux_success() assert success == True #操作栏生成单据 def test_caoz_scdj(self): success = self.zl.unit_chuzu.chuzu_addcard_success("出借") assert success == True success = self.zl.unit_chuzu.caoz_scdj_success() assert success == True #待送审-修改 def test_chuzu_xiug(self): success = self.zl.unit_chuzu.chuzu_xiug_success() assert success == True #待送审-删除 def test_chuzu_del(self): success = self.zl.unit_chuzu.chuzu_del_success() assert success == True