Changeset c248e37


Ignore:
Timestamp:
2021-03-16T14:33:01Z (4 weeks ago)
Author:
/ <>
Children:
1ba675c
Parents:
a4623f4
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/test1.py

    ra4623f4 rc248e37  
    66YESTEST = True
    77MESSAGETEST = True
    8 BLOCKTEST = True
     8BLOCKTEST = False
    99OFFLINETEST = False
    1010RENAMETEST = True
     
    1313FAILED = []
    1414
    15 SEPARATOR = "================================"
    16 SMOLPARATOR = "--------------------------------"
     15SEPARATOR = "="*60
     16SMOLPARATOR = "-"*60
    1717
    1818class IrcClient:
     
    2424        self.sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    2525
    26     def send_raw(self, msg, loud = True):
     26    def send_raw(self, msg, loud = False):
    2727        self.receive()
    2828        if loud:
     
    106106        FAILED += [test_name]
    107107
    108         flag = False
    109108        for cli in clis:
    110109            if cli.tmplog != "":
     
    112111                print("Test Log "+ cli.nick+":")
    113112                print(cli.tmplog)
    114                 flag = True
    115         if flag:
    116             print(SMOLPARATOR)
    117113
    118     print(SEPARATOR+"\n")
     114    print(SEPARATOR)
    119115
    120116def yes_test(clis):
     
    187183        print(SMOLPARATOR)
    188184
    189     if len(FAILED) != 0:
     185    if FAILED:
    190186        print("\n" + SEPARATOR + "\nSome test have failed:")
    191187        for fail in FAILED:
     
    195191   
    196192if __name__ == "__main__":
     193    global FAILED
    197194    run_tests()
    198195    if FAILED:
Note: See TracChangeset for help on using the changeset viewer.