You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
Adding tests for parsing one line functions/ Fixing parser bug. (#499)
* Added tests for parsing "One line functions"
The tests look valid but don't pass.
from debugging looks like the parser cant find the decorator, although it has no problem finding the function and accepting it as valid.
* Fix parser.py to work on one line functions.
* PEP8 fixes.
* Adding a test for multiple decorators over a "single line function".
* Added tests for single line function with decorator.
1. oneliner_with_decorator_expecting_errors(): The decorator is not ignored, expecting the D400, D415 errors.
2. valid_oneliner_with_decorator(): A valid one line function that shouldn't produce any errors.
* Added tests for single line function with decorator.
1. oneliner_with_decorator_expecting_errors(): The decorator is not ignored, expecting the D400, D415 errors.
2. valid_oneliner_with_decorator(): A valid one line function that shouldn't produce any errors.
Co-authored-by: Sambhav Kothari <[email protected]>
0 commit comments