summaryrefslogtreecommitdiff
path: root/tests/functional/m/missing
Commit message (Collapse)AuthorAgeFilesLines
* Fix a false negative for 'missing-parentheses-for-call-in-test'Pierre Sassoulas2023-02-052-19/+56
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* add inferenceclavedeluna2023-01-231-3/+3
|
* fix no-kwoa for any with callsclavedeluna2023-01-232-0/+3
|
* fix no-kwoa for one with callclavedeluna2023-01-231-1/+18
|
* Replace no-method-argument with no-self-argument when variadic args present ↵Jakub Kuczys2022-09-231-2/+2
| | | | | | (#7518) Also add method name to the error message
* Remove Python 2 code from the tests & refactor (#7320)Mark Byrne2022-08-184-12/+11
| | | | | | | - Refactor Classes which inherit from `object`. - Remove `import print_function from __future__`. - Remove assignments to `__revision__` from the functional test module when it is never used throughout the module. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [ADD] missing-timeout: Used when a method call an external request (#6780)Moises Lopez - https://www.vauxoo.com/2022-06-232-0/+110
| | | | | | | | | | | | | | | | | | | | | | | Calling external request needs to use timeout in order to avoid waiting for a long time You can even reproduce the case using deelay.me e.g. ```python import requests response = requests.get("https://deelay.me/5000/http://localhost:80") # It will spend 5s response = requests.get("https://deelay.me/5000/http://localhost:80", timeout=2) # timeout response = requests.get("https://deelay.me/1000/http://localhost:80", timeout=2) # fine ``` After 2s if the request doesn't have response it raises the following exception requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='deelay.me', port=443): Read timed out. (read timeout=2) But if it responses <=1s it is fine Now you can test the same but using a bigger delay
* Emit `using-constant-test` when testing truth value of a call returning a ↵Jacob Walls2022-06-111-15/+15
| | | | | generator (#6911) Update confidence level to INFERENCE for `using-constant-test` and `missing-parentheses-for-call-in-test`
* Update ranges for error messages (#6606)Marc Mueller2022-05-131-15/+15
| | | | * using-constant-test * missing-parentheses-for-call-in-test
* C2901 & C2902: New checks for unnecessary lambda expression usage (#6004)Joe Young2022-05-041-1/+1
| | | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use ``node.position`` in ``add_message`` if available (#5897)Daniël van Noord2022-03-127-14/+14
|
* Move ``TestDocstring`` to functional tests (#5404)Daniël van Noord2021-11-2614-0/+74
|
* Update functional test expected output (#5349)Daniël van Noord2021-11-246-30/+30
| | | | | | * Add ``confidence`` to all expected functional test outputs * Make OutputLine accept end_line and end_column Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Move the functional tests for extension in 'tests/functional/ext'Pierre Sassoulas2021-11-233-168/+0
|
* Fix asterisks parsing of ``mising-param-doc`` (#5175)Daniël van Noord2021-10-181-0/+36
| | | Closes #3733
* Properly identify undocumented parameters and add new message called ↵Konstantina Saketou2021-10-103-0/+132
| | | | | | | | | | | | | | | | | | | missing-any-param-doc (#5097) * Correctly identify parameters with no doc and add new message This commit fixes the problem where non documented parameters where not being identified properly. Also, it adds a new message called ``missing-any-param-doc`` for when a function has no parameter and type doc at all. Adds new test cases for the ``missing-param-doc`` and ``missing-type-doc`` messages and tests for the new message ``missing-any-param-doc``. * Replace old messages with the new one where needed Fix pylint's code where the new message where needed in other files instead of triggering both missing-param-doc and missing-type-doc. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove functional test configuration for python version <=3.6.0Pierre Sassoulas2021-08-303-2/+0
| | | | | We're only supporting python version > 3.6 so this became useless configuration.
* Create subdirectory for crowded functional testsPierre Sassoulas2021-03-0714-0/+335