summaryrefslogtreecommitdiff
path: root/tests/widgets
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.
* Remove old __future__ importsLucas Hoffmann2018-06-19
| | | | They are not needed for python >= 3.0.
* Use a tuple to build a hash valueLucas Hoffmann2017-08-20
| | | | | | | | | The old implementation would raise an error when the translated tag string was a unicode string (might be defined as an abbreviation in the users config). The official docs suggest this kind of implementation: https://docs.python.org/3/reference/datamodel.html#object.__hash__
* Test hash() for TagWidget with unicode representationLucas Hoffmann2017-08-20
|
* 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.
* Replace cmp with rich comparisonsDylan Baker2017-01-27
| | | | | | This is both a performance issue (since cmp is slower than rich comparisons), and a python3 issue since cmp (and __cmp__) are gone in python 3.
* tests/widgets/globals: Add test for sorting of TagWidgetsDylan Baker2017-01-27