devtools/apptest.py
branchstable
changeset 2221 d9b85a7b0bdd
parent 1977 606923dff11b
child 2234 1fbcf202882d
child 2252 dd9758cb77e1
equal deleted inserted replaced
2220:64aace08ae2f 2221:d9b85a7b0bdd
    44     def close(self):
    44     def close(self):
    45         pass
    45         pass
    46     def sendmail(self, helo_addr, recipients, msg):
    46     def sendmail(self, helo_addr, recipients, msg):
    47         MAILBOX.append(Email(recipients, msg))
    47         MAILBOX.append(Email(recipients, msg))
    48 
    48 
    49 from cubicweb.server import hookhelper
    49 from cubicweb import cwconfig
    50 hookhelper.SMTP = MockSMTP
    50 cwconfig.SMTP = MockSMTP
    51 
    51 
    52 
    52 
    53 def get_versions(self, checkversions=False):
    53 def get_versions(self, checkversions=False):
    54     """return the a dictionary containing cubes used by this application
    54     """return the a dictionary containing cubes used by this application
    55     as key with their version as value, including cubicweb version. This is a
    55     as key with their version as value, including cubicweb version. This is a