summaryrefslogtreecommitdiff
path: root/tests/testutils
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-6/+1
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* [cleanup] Upgrade more doc following the PyCQA migrationPierre Sassoulas2023-03-316-14/+14
|
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-299-18/+18
|
* [deprecation] Make 'OutputLine' require a fixed number of args (#8474)Pierre Sassoulas2023-03-281-47/+1
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [testutil] Do not count files with leading underscoresPierre Sassoulas2023-03-282-7/+7
|
* [refactor] Separate assertion from setup in functional test's testPierre Sassoulas2023-03-281-21/+32
|
* [testutil] Display recursive call for crowded functional test dirPierre Sassoulas2023-03-284-0/+16
|
* [testutil] Fix the algorithm for functional test discoveryPierre Sassoulas2023-03-282-3/+8
|
* [functional tests] Display all violations for disorganized directoriesPierre Sassoulas2023-03-281-1/+5
|
* [testutil] Add proper test for the functional tests helpersPierre Sassoulas2023-03-2817-29/+132
|
* [ruff] Add RUF specific rules and autofix (#8449)Pierre Sassoulas2023-03-142-3/+4
|
* Update disallowed-name to flag module-level variables (#7808)Dani Alcala2023-01-251-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* [primer] Fall back to no rcfile rather than pylint's (#7798)Jacob Walls2022-11-191-2/+2
|
* Add typing to several test files (#7440)Daniël van Noord2022-09-091-2/+2
|
* Complete typing of all generic types (#7406)Daniël van Noord2022-09-041-4/+14
| | | | And update ``mypy`` configuration
* nest _test_environ_pythonpath independent of outside PYTHONPATH (#7367)Ben Greiner2022-08-271-17/+25
| | | Closes #7366
* Use permanent links in the primer comment (#7332)Daniël van Noord2022-08-227-124/+130
|
* [typing] Add typing to the tests directory (#7183)Pierre Sassoulas2022-07-141-1/+1
|
* [primer] Fix a silent fail when no command were given (#7185)Pierre Sassoulas2022-07-141-0/+11
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [pythonpath context manager] Fix a bug where pythonpath was not restored ↵Pierre Sassoulas2022-07-131-1/+22
| | | | correctly
* [testutils] Add a parameter to context manager changing sys.path or cwdPierre Sassoulas2022-07-111-0/+50
|
* [primer] Add a test for truncating commentsPierre Sassoulas2022-06-202-29/+82
|
* [primer] Add tests for the primer comment generated for PR (#6969)Pierre Sassoulas2022-06-1810-0/+212
| | | | | | * [primer] Add tests for the primer comment generated for PR This will permits to check that the comment is still correct in order to modify it in the future. We only test the primer for the target interpreter/OS.
* Makes functional tests auto-update works even if the current output is wrong ↵Pierre Sassoulas2022-06-131-7/+7
| | | | | | | | | | (#6891) Previously if an exception was raised during parsing we re-raised an explanation. Most of the time I just want to regenerate the output from the current pylint's output. It's what the exception suggested but it's impossible to do as the error is also raised when updating, so you had to empty the file. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [refactor] Make 'pylint.testutil.primer' a private APIPierre Sassoulas2022-06-101-1/+1
|
* [refactor] Create a primer package in 'pylint.testutils'Pierre Sassoulas2022-06-101-0/+0
|
* Run linking and diadef handling with patched `sys.path` (#6617)Andreas Finkler2022-05-175-0/+37
| | | * Use separate directory for pyreverse related test data
* Use main instead of master as main checker name (#6569)Daniël van Noord2022-05-101-1/+1
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Check documentation examples for fatal errors (#6475)Jacob Walls2022-04-301-0/+1
|
* Prevent false negatives for fatal errors with `--minimal-messages-config`Jacob Walls2022-04-171-0/+3
|
* Add ``--minimal-messages-config`` option for functional tests (#6246)Andreas Finkler2022-04-164-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ``--minimal-messages-config`` option for functional tests * Add test file option to exclude from --minimal-messages-config run. * Fix ``too-many-branches`` false negative * Fix ``access-member-before-definition`` false negative * Fix ``consider-using-min-builtin`` and ``consider-using-max-builtin`` false negatives * Fix ``consider-using-with`` false negative * Exclude ``deprecated-module`` tests from ``--minimal-messages-config`` run. Have to find out how the list of deprecated modules is built first. * Update doc/whatsnew/2.14.rst * Ignore deprecated module false negatives * Fix ``deprecated-typing-alias`` false negative * Skip tests for ``fixme`` message, don't know yet how enable/disable affects TokenChecker/RawChecker * Exclude functional test for various logging checks, as the output string depends on what messages are enabled. * Fix false negative for ``nan-comparison`` * Fix false negative for ``non-ascii-module-import`` * Fix false negative for ``non-ascii-file-name`` * Skip tests for logging messages * Fix false negative for ``undefined-variable`` in ``metaclass`` argument * Exclude test for ``catching-non-exception``. ``exc._all_bases_known`` is ``False`` when enabling just this message. * Exclude ``ungrouped_imports_suppression``. ``useless-suppression`` is triggered too often in this case. * Fix false negative for ``use-a-generator`` * Exclude functional tests for ``useless-suppression`` from ``--minimal-messages-config`` * Exclude another deprecation check from ``--minimal-messages-config`` run * Update tests/testutils/data/m/minimal_messages_config.py Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Use ``python-typing-update`` on half of the ``tests`` directory (#6317)Daniël van Noord2022-04-142-8/+13
|
* Remove ``set_config_directly`` (#6123)Daniël van Noord2022-04-021-15/+0
|
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-247-6/+12
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Simplify hard to maintain copyright noticePierre Sassoulas2022-03-245-0/+5
| | | | | | git is the source of truth for the copyright, copyrite (the tool) was taking exponentially longer with each release, and it's polluting the code with sometime as much as 50 lines of names.
* Check functional test directory for correct structureDaniël van Noord2022-02-105-1/+10
|
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-1/+1
|
* Make sure to split non-separated csv ``OuputLine's`` (#5665)Daniël van Noord2022-01-111-0/+11
| | | | | * Make sure to split non-separated csv ``OuputLine's`` * Add test for too long output lines
* Create ``_config_initialization`` util and use in functional tests (#5591)Daniël van Noord2021-12-233-0/+27
|
* Add a DeprecationWarning to set_config_directly (#5511)Daniël van Noord2021-12-131-0/+15
|
* Add typing to LintModuleOutputUpdate._check_output_textPierre Sassoulas2021-12-031-1/+1
| | | | Better typing for test options and fix existing issue
* Add a warning in functional test update for bad python versionsPierre Sassoulas2021-12-031-0/+12
|
* Add unit tests for LintModuleOutputUpdatePierre Sassoulas2021-12-031-0/+63
|
* Add ``min_pyver_end_position`` option (#5386)Daniël van Noord2021-11-251-15/+68
| | | | * Add ``min_pyver_end_position`` option
* Update functional test expected output (#5349)Daniël van Noord2021-11-241-4/+52
| | | | | | * 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>
* Primer tests "à la mypy" (#5173)Pierre Sassoulas2021-11-241-0/+48
| | | | | | | | | | | | * Add changelog and warning about unstable API in testutil * Add primer tests, (running pylint on external libs during tests) In order to anticipate crash/fatal messages, false positives are harder to anticipate. Follow-up will be #5359 and later on #5364 Add '__tracebackhide__ = True' so the traceback is manageable Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Add ``end_lineno`` and ``end_col_offset`` to ``MessageLocationTuple`` (#5343)Daniël van Noord2021-11-221-6/+1
|
* Add additional tests for ``OutputLine``Daniël van Noord2021-11-221-0/+17
|
* [refactor] Permit to get the expected exit code in configuration test frameworkPierre Sassoulas2021-11-227-0/+23
|
* Fix test decorator for `PyLinter` options (#5195)Daniël van Noord2021-10-221-0/+0
|