LibCST/libcst/_parser/tests
MapleCCC 973895a6c0
Several trivial refactors (#770)
* Enumeration members are singletons. Copying on them would be no-op

* Avoid generating unnecessary `pass` statement

* Several trivial refactor

* Avoid building unnecessary intermediate lists, which are mere slight waste of time and space

* Remove unused import, an overlook from commit 8e6bf9e9

* `collections.abc.Mapping.get()` defaults to return `None` when key doesn't exist

* Just use unittest's `assertRaises` to specify expected exception types, instead of catching every possible `Exception`s, which could suppress legitimate errors and hide bugs

* We know for sure that the body of `CSTTypedTransformerFunctions` won't be empty, so don't bother with complex formal completeness
2022-09-14 14:33:45 +01:00
..
__init__.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
test_config.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
test_detect_config.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
test_footer_behavior.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
test_node_identity.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
test_parse_errors.py Several trivial refactors (#770) 2022-09-14 14:33:45 +01:00
test_version_compare.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
test_whitespace_parser.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00
test_wrapped_tokenize.py Fix license headers (#560) 2021-12-28 11:55:18 +00:00