devtools/apptest.py
changeset 2234 1fbcf202882d
parent 2058 7ef12c03447c
parent 2221 d9b85a7b0bdd
child 2293 7ded2a1416e4
equal deleted inserted replaced
2209:2b91abd9f5a4 2234:1fbcf202882d
    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