def test_auditBatchAgree_2(self):
     s = SendData()
     s.send("mainscene", 'ipt_1', 1)  # 开具医嘱
     engineid = IptWait().selNotAuditIptList(
         s.change_data["{{ts}}"])['data']['engineInfos'][0]['id']
     Audit().auditBatchAgree(3, engineid)
     assert IptWait().selNotAuditIptList(
         s.change_data["{{ts}}"]) is not None
Beispiel #2
0
 def __init__(self):
     self.send = SendData()
     self.conf = ReadConfig()
     self.request = HttpRequest()
     self.db = ConnectDB()
     self.conn = self.db.connect(self.db.db_sys)
     self.cur = self.db.get_cur(self.conn)
     username = self.conf.get('login', 'username')
     sql = self.conf.get('sql', 'zoneid')
     self.zoneid = (self.db.execute(self.cur, sql))[0]
Beispiel #3
0
def send():
    sd = SendData()
    yield sd
Beispiel #4
0
 def __init__(self):
     self.send = SendData()
     self.conf = ReadConfig()
     self.request = HttpRequest()
Beispiel #5
0
 def __init__(self):
     self.send = SendData()
     self.conf = ReadConfig()
     self.auditcenter_url = self.conf.get('auditcenter', 'address')
     self.request = HttpRequest()