summaryrefslogtreecommitdiff
path: root/tests/settings
Commit message (Collapse)AuthorAge
* Remove unicode literals syntax from python2Lucas Hoffmann2019-11-06
|
* Use unittest.mock from the stdlibLucas Hoffmann2019-08-15
| | | | It was added to the stdlib in py3.3 and we already require 3.5.
* Rename test filesLucas Hoffmann2019-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.
* update tagstring tests for regex behaviorWill Dietz2018-12-22
| | | | | | * Fix (invert) existing test * Add new tests based on behavior mentioned previously * test to ensure translations using re.sub work
* rename get_account_by_address to account_matching_addressvrs2018-12-10
| | | | | ... since accounts' addresses can overlap and get_account_by_address promises too much. Also remove now-obsolete get_addresses.
* update theme spec, default theme and testsPatrick Totzke2018-07-24
| | | | | | | | | | This patchseries adds a new buffer type for displaying notmuch's saved querystrings. This commit adds the respective theming attributes used in the new buffer. They are just copies of the taglist buffer really. THIS BREAKS COMPATIBILITY WITH USER THEMES! The theme files need to be updated to also have these new attributes in order to conform with the updated spec.
* update tests for SettingsManagerPatrick Totzke2018-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__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* settings/manager: fix managerDylan Baker2018-03-01
|
* Expand environment variables when reading the config file.Julian Mehne2018-01-23
|
* Set changed values in mock.patch.dict call itself.Julian Mehne2018-01-23
|
* Store settings in alot.rc.spec.Julian Mehne2018-01-21
| | | | | - allows users to use $XDG_CONFIG_HOME, as well - stores information in single places.
* De-duplicate code with helper function.Julian Mehne2018-01-21
|
* Use any() instead of a for loop with a break statementLucas Hoffmann2018-01-09
|
* Move code out of with blockLucas Hoffmann2018-01-08
| | | | | The code doesn't need the context manager to be active, hence it can run outside of the with block.
* Use message of test assert function instead of print()Lucas Hoffmann2018-01-08
| | | | | This makes it possible to silence the test output with normal unittest settings (e.g. command line parameters).
* Log unknown settings in configuration and theme files.Julian Mehne2018-01-08
|
* Fix typos in tests.Julian Mehne2018-01-07
|
* Allow regex special characters in tagstrings.Julian Mehne2017-12-02
| | | | | | | | | | | | | | | Fixes the following crashes: 1. tag completion with regex special chars :search tag:[<tab> 2. Changing tag representation of an (existing) tag with regex special chars: [tags] [[my**tag]] normal = '','', 'white','light red', 'white','#d66' 3. Contact completion with regex special chars and no external command: To:**foo<tab>
* Use new Address classDylan Baker2017-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
* tests/settings/manager: Add test for case insensitivityDylan Baker2017-08-28
| | | | This currently fails as there is not way to toggle case sensitivity
* Merge pull request #1095 from dcbaker/submit/use-default-theme-if-no-configDylan Baker2017-08-17
|\ | | | | Load default settings even if a user config doesn't exist
| * settings: Load spec file even if config file is undefined.Dylan Baker2017-08-16
| | | | | | | | | | | | | | | | | | | | This is necessary even if the config file is None to ensure that the spec file is loaded Also mock out the setting.const module in the docs, otherwise they'll fail to generate. Fixes #1094
| * tests/settings/manager: Add tests for Null config filesDylan Baker2017-08-16
| | | | | | | | Which fail, per #1094
* | Add test for get_account_by_address with realnameLucas Hoffmann2017-08-16
|/
* settings/manager: Extend the get_account_by_address with return_defaultDylan Baker2017-07-27
| | | | | | This new return_default flag (which is an optional and default to False) will try to return the default account if it cannot find an account matching the address hint.
* Tests for alot.settings.theme.Theme.get_attributeLucas Hoffmann2017-07-17
|
* Test alot.settings.utils.resolve_attLucas Hoffmann2017-07-17
|
* settings: Add a reload methodDylan Baker2017-07-10
| | | | | | | | | | | This patch does a bit of refactoring to the Settings class for it's setup, and adds a reload method. The refactoring encapsulates the handling of NoneType for the read_*config methods, and reworks the constructor just a bit so that it doesn't rely on calling methods to create instance variables. The end result is slightly cleaner, and will be useful for adding a reload command to alot itself.
* tests: rename settings/manager.py -> settings/manager_test.pyDylan Baker2017-07-10
| | | | Or it wont be picked up by some test discovery methods.
* Add simple tests for settings methods for notmuch settingsLucas Hoffmann2017-06-06
|
* move alot/settings/checks to alot/utils/configobjDylan Baker2017-01-25
| | | | This is just more reorganization.
* Use absolute_imports from __future__Lucas Hoffmann2017-01-18
|
* Port old doctests to unittest: alot.settings.checksLucas Hoffmann2017-01-18