Changeset c248e37 for .tests/test1.py
- Timestamp:
- 2021-03-16T14:33:01Z (4 years ago)
- Children:
- 1ba675c
- Parents:
- a4623f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/test1.py
ra4623f4 rc248e37 6 6 YESTEST = True 7 7 MESSAGETEST = True 8 BLOCKTEST = True8 BLOCKTEST = False 9 9 OFFLINETEST = False 10 10 RENAMETEST = True … … 13 13 FAILED = [] 14 14 15 SEPARATOR = "= ==============================="16 SMOLPARATOR = "- -------------------------------"15 SEPARATOR = "="*60 16 SMOLPARATOR = "-"*60 17 17 18 18 class IrcClient: … … 24 24 self.sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 25 25 26 def send_raw(self, msg, loud = True):26 def send_raw(self, msg, loud = False): 27 27 self.receive() 28 28 if loud: … … 106 106 FAILED += [test_name] 107 107 108 flag = False109 108 for cli in clis: 110 109 if cli.tmplog != "": … … 112 111 print("Test Log "+ cli.nick+":") 113 112 print(cli.tmplog) 114 flag = True115 if flag:116 print(SMOLPARATOR)117 113 118 print(SEPARATOR +"\n")114 print(SEPARATOR) 119 115 120 116 def yes_test(clis): … … 187 183 print(SMOLPARATOR) 188 184 189 if len(FAILED) != 0:185 if FAILED: 190 186 print("\n" + SEPARATOR + "\nSome test have failed:") 191 187 for fail in FAILED: … … 195 191 196 192 if __name__ == "__main__": 193 global FAILED 197 194 run_tests() 198 195 if FAILED:
Note: See TracChangeset
for help on using the changeset viewer.