Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 6361:58817c3bf471
Fix roundup/test
Move the test-detectors in tx_Source_detector.py to roundup/test for two
reasons: It's used in the memorydb convenience functions and it may be
useful in other tests. Make the prefix a paramter of the convenience
functions to be usable in other tests.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Tue, 30 Mar 2021 14:16:28 +0200 |
| parents | 14c9284a8bad |
| children | 7f00fc5958ca |
comparison
equal
deleted
inserted
replaced
| 6360:a77a7d04ed23 | 6361:58817c3bf471 |
|---|---|
| 39 from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ | 39 from roundup.mailgw import MailGW, Unauthorized, uidFromAddress, \ |
| 40 parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp | 40 parseContent, IgnoreLoop, IgnoreBulk, MailUsageError, MailUsageHelp |
| 41 from roundup import init, instance, password, __version__ | 41 from roundup import init, instance, password, __version__ |
| 42 | 42 |
| 43 #import db_test_base | 43 #import db_test_base |
| 44 from . import memorydb | 44 from roundup.test import memorydb |
| 45 from .cmp_helper import StringFragmentCmpHelper | 45 from .cmp_helper import StringFragmentCmpHelper |
| 46 | 46 |
| 47 def expectedFailure(method): | 47 def expectedFailure(method): |
| 48 """ For marking a failing test. | 48 """ For marking a failing test. |
| 49 This will *not* run the test and return success instead. | 49 This will *not* run the test and return success instead. |
