summaryrefslogtreecommitdiff
path: root/tests/test_simple_unit.py
Commit message (Collapse)AuthorAgeFilesLines
* Convert most str.format() calls in tests to use f-stringsptmcg2022-05-301-4/+2
|
* Added min/max keyword arguments for delimited_list (#335)Marius2021-12-041-0/+12
| | | | | * Added min/max keyword arguments for delimited_list * Rename arguments and add validation
* Fix test issue; update version timeptmcg2021-09-021-2/+4
|
* Make static methods staticmethodsptmcg2021-09-021-0/+2
|
* Sweep code for calls using legacy namesptmcg2021-08-081-43/+43
|
* Add PEP-8 naming, with compatibility synonymsptmcg2021-08-071-2/+2
|
* Minor code cleanupsptmcg2021-08-071-1/+4
|
* Add allowTrailingDelim to delimitedList helper (#285)Kazantcev Andrey2021-07-291-0/+14
| | | Merge pull request #285 - Add allowTrailingDelim to delimitedList helper
* Additional configuration for `skipWhitespace` and `leaveWhitespace` (#219)Michael Milton2020-06-091-0/+91
| | | | | | | * Add .ignoreWhitespace() method * Add recursive arg to leave- and ignoreWhitespace(), with tests * Add tests and implementation of the recursive flag
* Pop counter token and return rest instead of dropping all tokens in ↵Marcin Jaworski2020-05-031-1/+1
| | | | | | | | | | | | | countedArray (#209) * Pop counter token and return rest instead of dropping all tokens * Include only named results from intExpr in countedArray results * Remove internal Group from countedArray * Fix operator precedence * Update countedArray tests
* Rollforward infixNotation ternary op fix from 2.4.6 branch, plus related ↵ptmcg2020-01-041-1/+1
| | | | unit test; change TestParseResultsAsserts to mixin instead of subclass; rollforward 2.4.6 CHANGES blurb from 2.4.6 branch
* Blacken the project (#141)Jon Dufresne2019-10-311-242/+374
|
* Some code header cleanup; remove BUFFER_OUTPUT from test_unit.py, and ↵Paul McGuire2019-10-241-1/+1
| | | | replace most resetting() context managers and try-finallys with ppt.reset_pyparsing_context
* Use pyupgrade to upgrade the code to use Python3 conventions (#138)Jon Dufresne2019-10-241-2/+2
| | | | | | | | | | | | The pyupgrade project is available at https://github.com/asottile/pyupgrade and can be installed through pip. The pyupgrade tool automatically upgrades syntax for newer versions of the language. As pyparsing is now Python 3 only, can apply some cleanups and simplifications. Ran the tool using the following command: $ find . -name \*.py -exec pyupgrade --py3-plus {} \; For now, pyparsing.py was skipped while it is refactored to a package.
* refactor tests into tests directory (#130)Kyle Lahnakoski2019-10-211-0/+463