Changeset 2c7f522 for .tests/test1.py
- Timestamp:
- 2021-03-18T11:54:01Z (4 years ago)
- Children:
- 89925a7
- Parents:
- 9634fba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/test1.py
r9634fba r2c7f522 4 4 import select 5 5 6 YESTEST = True7 ADDBUDDYTEST = True8 MESSAGETEST = True9 BLOCKTEST = False10 OFFLINETEST = True11 RENAMETEST = True12 STATUSTEST = True13 DEFAULTTARGETTEST = True14 HELPTEST = True15 6 SHOWLOG = False 16 7 SHOWTESTLOG = True … … 144 135 def add_buddy_test(clis): 145 136 clis[0].add_jabber_buddy(clis[1].nick) 137 clis[1].send_priv_msg("&bitlbee", "yes") 138 146 139 clis[1].add_jabber_buddy(clis[0].nick) 147 148 140 clis[0].send_priv_msg("&bitlbee", "yes") 149 clis[1].send_priv_msg("&bitlbee", "yes")150 141 151 142 clis[0].send_priv_msg("&bitlbee", "blist") … … 162 153 clis[0].send_priv_msg("&bitlbee", "blist") 163 154 junk = clis[0].receive() 164 ret = ret & (junk.find("1 available") != -1)155 # ret = ret & (junk.find("1 available") != -1) 165 156 ret = ret & (junk.find(clis[1].nick) != -1) 166 157 … … 269 260 cli.jabber_login() 270 261 271 if ADDBUDDYTEST: 272 perform_test(failed, clis, add_buddy_test, "Add/remove buddy") 273 274 275 if MESSAGETEST: 276 perform_test(failed, clis, message_test, "Send message") 277 278 if BLOCKTEST: 279 perform_test(failed, clis, block_test, "Block user") 280 281 if RENAMETEST: 282 perform_test(failed, clis, rename_test, "Rename user") 283 284 if STATUSTEST: 285 perform_test(failed, clis, status_test, "Change status") 286 287 if OFFLINETEST: 288 perform_test(failed, clis, offline_test, "Go offline") 289 290 if DEFAULTTARGETTEST: 291 perform_test(failed, clis, default_target_test, "Change default target") 292 293 if HELPTEST: 294 perform_test(failed, clis, help_test, "Ask for help") 295 296 if failed or SHOWLOG: 262 perform_test(failed, clis, add_buddy_test, "Add/remove buddy") 263 perform_test(failed, clis, message_test, "Send message") 264 #perform_test(failed, clis, block_test, "Block user") 265 perform_test(failed, clis, rename_test, "Rename user") 266 perform_test(failed, clis, status_test, "Change status") 267 perform_test(failed, clis, offline_test, "Go offline") 268 perform_test(failed, clis, default_target_test, "Change default target") 269 perform_test(failed, clis, help_test, "Ask for help") 270 297 271 print("") 298 272 for cli in clis:
Note: See TracChangeset
for help on using the changeset viewer.