Mercurial > p > roundup > code
diff roundup/mailgw.py @ 6673:567283742a5c
Add more translation tests for mailgw.py
Verify error in German for [issue999999] and [frobulated] in subject
line. The issue doesn't exist and the class doesn't exist.
Also add warning to mailgw.py for mailgw.py::handle_message that any
chnags to that method need to be replicated for all Translate tests in
test_mailgw.py since it can't be tested directly as it destroys the
mock used for the database by the test harness.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 12 May 2022 14:50:50 -0400 |
| parents | 01216187a167 |
| children | 3d2ec36541b9 |
line wrap: on
line diff
--- a/roundup/mailgw.py Wed May 11 21:20:34 2022 -0400 +++ b/roundup/mailgw.py Thu May 12 14:50:50 2022 -0400 @@ -1600,6 +1600,12 @@ ''' message - a Message instance Parse the message as per the module docstring. + + WARNING: any changes in this code need to be moved to all + *Translate* test cases in test/test_mailgw.py. This method + can't be tested directly because it opens the instance + erasing the database mocked by the test harness. + ''' # get database handle for handling one email self.db = self.instance.open('admin')
