Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | db/envelope: move to a new module "mail" | Anton Khirnov | 2021-01-30 |
| | | | | It has nothing to do with the database. | ||
* | Remove unicode literals syntax from python2 | Lucas Hoffmann | 2019-11-06 |
| | |||
* | Fix tests to reflect new messages. | Pol Van Aubel | 2019-11-02 |
| | |||
* | unused imports and variables | Patrick Totzke | 2019-08-15 |
| | |||
* | Use unittest.mock from the stdlib | Lucas Hoffmann | 2019-08-15 |
| | | | | It was added to the stdlib in py3.3 and we already require 3.5. | ||
* | tests: move tests for db.utils.clear_my_address | Patrick Totzke | 2019-06-02 |
| | |||
* | tests: move test for utils.ensure_unique_address | Patrick Totzke | 2019-06-02 |
| | |||
* | fix tests | Patrick Totzke | 2019-05-11 |
| | | | | | ComposeCommand._set_gpg_sign will now read off the account from self.envelope and not separate parameters. | ||
* | remove test for ComposeCommand._set_from.. | Patrick Totzke | 2019-05-11 |
| | | | | .. which was replaced earlier | ||
* | fix pyflakes issues | Patrick Totzke | 2019-05-11 |
| | |||
* | tests/commands/globals: Rename tests to better fit the methods they test | Dylan Baker | 2019-05-11 |
| | |||
* | commands/globals simplify test for issue #1277 | Patrick Totzke | 2019-05-11 |
| | |||
* | tests/commands/globals: Simplify signing tests | Patrick Totzke | 2019-05-11 |
| | |||
* | tests/commands/globals: Simplify template_decode test | Patrick Totzke | 2019-05-11 |
| | |||
* | Rename test files | Lucas Hoffmann | 2019-01-29 |
| | | | | | | | | The two main reasons are - to run `python3 -m unittest discover` without specifying a custom `--pattern *_test.py` - to include the test files automatically when generating the MANIFEST file. | ||
* | rename get_account_by_address to account_matching_address | vrs | 2018-12-10 |
| | | | | | ... since accounts' addresses can overlap and get_account_by_address promises too much. Also remove now-obsolete get_addresses. | ||
* | match addresses against accounts, not address lists | vrs | 2018-12-10 |
| | | | | fixes #1230, fixes an unfiled bug in clear_my_address() | ||
* | attach accounts to envelopes | vrs | 2018-12-10 |
| | | | | simplifies a few tests, fixes #1177 | ||
* | Assert some logging messages to silence them | Lucas Hoffmann | 2018-11-11 |
| | | | | | The logging messages appear in between the test output. By asserting them they are hidden from the output. | ||
* | commands/globals: Convert CallCommand.apply to a coroutine | Dylan Baker | 2018-08-02 |
| | | | | | | This allows it to easily wrap calls that are themselves coroutines, while it's still able to wrap synchronous calls. This fixes the async test and allows hooks that are coroutines to work. | ||
* | tests: Add a couple of tests for the CallCommand class | Dylan Baker | 2018-08-02 |
| | | | | | This basically just tests that a synchronous and an asynchronous function work, (the async doesn't yet). | ||
* | tests: drop remaining references to twisted from unit tests | Dylan Baker | 2018-07-26 |
| | | | | all unittests now use asyncio and the standard unittest framework. | ||
* | ui: switch ui.prompt and ui.choice to use asyncio.Futures | Dylan Baker | 2018-07-26 |
| | | | | | | | | | | | asyncio's Futures are much like twisted's Deferreds, they represent a value that is not yet available, and they can be awaited like a coroutine. For the moment we still need to return a deferred because the twisted eventloop doesn't use Futures, it uses Deferreds; once we can remove twisted's eventloop we can remove the conversion from a Future to a deferred. | ||
* | account: Convert send_mail function to coroutine | Dylan Baker | 2018-07-26 |
| | |||
* | tests/commands/global: use utilities.async_test | Dylan Baker | 2018-07-26 |
| | |||
* | tests/commands/envelope: use utilities.async_test | Dylan Baker | 2018-07-26 |
| | |||
* | tests/commands/utils: use utilities.async_test | Dylan Baker | 2018-07-26 |
| | |||
* | commands/globals: implement ExternalCommand.apply as coroutine | Dylan Baker | 2018-07-26 |
| | | | | | | Rather than returning a deferred in some cases, this makes the function a coroutine, in some cases it calls regular subprocess, in other cases it uses asyncio subprocess. | ||
* | commands/globals: Use asyncio coroutines instead of twisted deferreds | Dylan Baker | 2018-07-26 |
| | |||
* | command/envelope: use asyncio coroutines instead of twisted inlineCallbacks | Dylan Baker | 2018-07-26 |
| | |||
* | commands/globals: Convert Address to string for email.utils | Dylan Baker | 2018-07-25 |
| | | | | | | | | Email utils apparently assumes it's getting a string, and calls encode directly. This can only be hit if you have a single account configured, not with multiple accounts. Fixes #1277 | ||
* | Merge pull request #1252 from pazz/update-envelope-keys | Dylan Baker | 2018-07-24 |
|\ | | | | | fix: automatically update envelope gpg keys only if requested. see #1228 | ||
| * | rename function that updates gpg keys in envelopes | Patrick Totzke | 2018-06-21 |
| | | |||
* | | Remove pre py3 monkey patch | Lucas Hoffmann | 2018-07-22 |
| | | |||
* | | update tests for SettingsManager | Patrick Totzke | 2018-06-21 |
|/ | | | | | | | - SettingsManagers is now instantiated without config paths and instead `read_[notmuch]config` is called separately - test_no_user_setting_* are removed, because we do not need to test what config path SettingsManager uses anymore (this is now explicit) | ||
* | Remove old __future__ imports | Lucas Hoffmann | 2018-06-19 |
| | | | | They are not needed for python >= 3.0. | ||
* | Revert "Extract some context managers for patch objects." | Dylan Baker | 2018-04-24 |
| | | | | | | | | This reverts commit d01d2e51da45dd87f0abf98b8a856f3b3de69153. I don't think that this patch really improved readability that much. The right solution is to split ComposeCommand.apply so we don't need so many mocks. | ||
* | Wrap long statements on open-bracket syntax. | Ben Finney | 2018-04-23 |
| | |||
* | Rename some test functions to have shorter names. | Ben Finney | 2018-04-23 |
| | |||
* | Extract some context managers for patch objects. | Ben Finney | 2018-04-23 |
| | | | | This allows writing less-nested statements. | ||
* | tests/commands/utils_tests: use assertCountEqual for comparing lists | Dylan Baker | 2018-03-01 |
| | | | | | Which compares that the lists have the same elements, but doesn't check their order. | ||
* | tests/command/utils_tests: fix for py3k | Dylan Baker | 2018-03-01 |
| | |||
* | alot/command/envelope: py3k fixes | Dylan Baker | 2018-03-01 |
| | |||
* | Move mock ui creation to function. | Thomas Nixon | 2018-02-19 |
| | |||
* | Add test: template not decoded properly. | Julian Mehne | 2018-02-15 |
| | |||
* | Fix typos in tests. | Julian Mehne | 2018-01-07 |
| | |||
* | tests/commands/utils: Add encrypt to self tests | Ruben Pollan | 2017-09-26 |
| | |||
* | tests/commands/utils: Add tests for alot/commands/utils.py | Dylan Baker | 2017-09-25 |
| | |||
* | Use new Address class | Dylan Baker | 2017-08-28 |
| | | | | | | | This just wries the new Address class into alot for use, and fixes up a few places where such fixups are needed. Fixes #1107 | ||
* | commands/globals: Only set stdin to a pipe if there is data | Dylan Baker | 2017-08-23 |
| | | | | | | | | | | Otherwise the editor will crash. I can't figure out for the life of me to test this. I thought that I would be able to do something like detect if stdin is a tty or something else, but that doesn't seem to work. Fixes #1137 |