summaryrefslogtreecommitdiff
path: root/tests/utils
Commit message (Collapse)AuthorAge
* 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.
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* add test for argparse validatorPatrick Totzke2017-11-08
|
* tests: Instruct pylint to ignore a large swath of warningsDylan Baker2017-02-08
| | | | | | | | | There are a number of things pylint warns on that absolutely make sense to fix in production code, but for unittests they either don't matter (like naming variables "foo"), can't be fixed (TestCase methods that don't use self because they use a mock assert), or the descriptive names violate PEP8. These are annoying and create noise, so tell pylint to ignore them.
* Silence argparse validator testLucas Hoffmann2017-01-28
|
* alot/utils/argparse: Add a new argparse validators infrastructureDylan Baker2017-01-25
| | | | | | | | | | | | | This adds a new argparse.Action class validates input using a new keyword argument that takes a validator function. This will allow us to replace the use the type keyword as a validator, which is both more correct, and frees up the type keyword to do what it's actually meant to do, convert the input from one type to another. It also adds 3 new validator functions that will be enabled in the next commit. One that checks for a required file, one that checks for an optional directory, and one that looks for a required file, fifo, or block special device (/dev/null).
* move alot/settings/checks to alot/utils/configobjDylan Baker2017-01-25
This is just more reorganization.