aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* mappings: add an initial, simple OrderedSet implementationTim Harder2020-12-041-0/+59
| | | | Leveraging guaranteed insertion order dicts from py36 on.
* tests: skip failing formatters tests on github CITim Harder2020-11-271-0/+2
|
* tests: fix existent_path and existent_dir argparse type testsTim Harder2020-11-251-4/+4
|
* cli.arghparse: drop allow_stdin param for Parse*Stdin actionsTim Harder2020-11-181-18/+2
|
* cli.arghparse: add optional filter_func param for Parse*Stdin actionsTim Harder2020-11-181-1/+1
| | | | And only use rstrip() on lines instead of strip().
* test_obj: Ignore __class_getitem__Michał Górny2020-05-281-1/+2
| | | | | Ignore __class_getitem__ special that was added to some stdlib objects in Python 3.9. It is used as part of type declarations.
* drop unnecessary object class inheritance for py3Tim Harder2020-01-3125-135/+135
|
* fileutils: drop refs to readfile/readlines C extensions and default to utf8Tim Harder2019-12-161-23/+13
|
* tests: drop pytest-mock plugin usageTim Harder2019-11-181-34/+39
|
* strings: add doc_dedent() function for dedenting docstringsTim Harder2019-08-301-20/+59
|
* tests: make spawn_bash() test check bash output as wellTim Harder2019-08-221-2/+4
|
* remove license/copyright file headersTim Harder2019-08-1831-100/+0
| | | | These are both covered by the LICENSE file in the repo's root directory.
* cli.arghparse: add existent_dir argument typeTim Harder2019-08-151-0/+29
|
* tests: move unit tests into module subdirTim Harder2019-08-1433-0/+0
|
* klass: DirProxy: support pulling attr list from __slots__Tim Harder2019-08-101-0/+16
|
* tests: complete ImmutableDict check coverageTim Harder2019-08-101-0/+15
|
* tests: add some basic ImmutableDict init checksTim Harder2019-08-091-13/+37
|
* mappings: ImmutableDict: simplify using collections.abc.MappingTim Harder2019-08-091-9/+25
| | | | This also fixes previous pickling issues.
* Revert "tests/cli: fix mocked obj assertions for py34/py35"Tim Harder2019-07-291-2/+2
| | | | | | We're >= py36 only now. This reverts commit a287c1ad3a0abeabb4a8117d55683307f0d38bb4.
* tests: use sys.exit() to test child process exit statusTim Harder2019-05-181-1/+5
| | | | | | | Instead of os._exit() to avoid cases where sending child exceptions via pipes can hang. Fixes #47.
* split decorators into their own moduleTim Harder2019-03-022-42/+73
|
* tests/cli: fix mocked obj assertions for py34/py35Tim Harder2019-02-271-2/+2
|
* tests/cli: add initial ManHelpAction testsTim Harder2019-02-261-0/+23
|
* tests/cli: add bool tests for NamespaceTim Harder2019-02-261-0/+6
|
* tests/cli: add argument groups and subparsers checks for CopyableParserTim Harder2019-02-261-0/+55
|
* tests/test_process_spawn: fix spawn_get_output value checksTim Harder2019-02-261-1/+1
|
* tests/cli: add initial tests for OptionalsParser and CsvActionsParserTim Harder2019-02-261-1/+85
|
* tests/cli: add more Copyable parser testsTim Harder2019-02-261-15/+53
|
* tests/cli/test_arghparse: add basic CopyableParser testsTim Harder2019-02-261-0/+45
|
* iterables: add initial partition() methodTim Harder2019-02-171-1/+18
|
* bash: read_bash_dict(): discard 'export' token from "export VAR=VALUE" linesTim Harder2019-01-261-3/+6
|
* mappings: DictMixin: pop(): support using a default value of NoneTim Harder2019-01-261-0/+1
|
* tests: drop f-string usage since we still support py34/py35Tim Harder2019-01-081-2/+2
|
* tests/test_version: fix tests for git data extraction and version formattingTim Harder2019-01-081-3/+5
|
* tests/cli: add more debug and verbosity argparser testsTim Harder2019-01-061-10/+63
|
* tests/cli/test_arghparse: make several assertions more specific to data typeTim Harder2019-01-061-6/+6
|
* tests/test_process: use open() from builtins to fix testTim Harder2018-12-041-1/+1
|
* tests: move eq hash inheritance check back into moduleTim Harder2018-10-012-49/+5
| | | | Since it's used by pkgs using snakeoil such as pkgcore.
* tests: Handle lack of namespace permissions gracefullyMichał Górny2018-09-222-38/+62
|
* add support for py-3.7Tim Harder2018-09-211-6/+0
|
* tests: fix cli argparsing stdin test under cibuildwheel envTim Harder2018-06-151-2/+4
|
* tests: move slot shadowing and other namespace walker tests into their own ↵Tim Harder2018-06-113-122/+9
| | | | | | classes Since pkgcore and other modules use these for their own tests.
* simplify various super() callsTim Harder2018-04-111-2/+2
|
* cli.arghparse: large reworking of custom actionsTim Harder2018-04-111-8/+103
| | | | | Actions have been renamed to help better describe what they do and a few new actions have been added.
* sequences: add initial split_elements() methodTim Harder2018-04-111-7/+75
| | | | | | | Similar to split_negations(), but it supports negative, neutral, and positive elements. Unlike split_negations(), split_elements() classifies non-prefixed tokens as neutral while those starting with '-' and '+' are negative and positive, respectively.
* chksum: drop whirlpool supportTim Harder2018-04-111-1/+0
| | | | | Since gentoo moved away from using it we don't need to support it anymore.
* cli.arghparse: add append variants of csv arg parsing actionsTim Harder2018-04-111-27/+41
|
* tests/cli/test_arghparse: fix multi extend comma delimited action testingTim Harder2018-04-111-6/+6
|
* tests/cli/test_arghparse: split up argparse option testsTim Harder2018-04-111-8/+29
|
* test: initial conversion from unittest to pytest functionalityTim Harder2018-04-1132-1792/+1703
|