Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate test for extension to functional tests #5374

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

Pierre-Sassoulas
Copy link
Member

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

Migrate all the extensions tests that are reading files to the functional tests that permits to test more and are easier to understand.

Refactor prior to #5369

@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Nov 22, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.12.0 milestone Nov 22, 2021
@coveralls
Copy link

coveralls commented Nov 22, 2021

Pull Request Test Coverage Report for Build 1493913021

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.007%) to 93.453%

Files with Coverage Reduction New Missed Lines %
pylint/extensions/mccabe.py 1 99.05%
Totals Coverage Status
Change from base Build 1492327926: 0.007%
Covered Lines: 13932
Relevant Lines: 14908

πŸ’› - Coveralls

@DanielNoord
Copy link
Collaborator

Just FYI: This should also block #5349!

Copy link
Member

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave that one up to you. It's definitely an improvement. (Just difficult to review the change.)

Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah quite difficult to review this. I'm leaning to trusting you on this one, it's just tests anyway so no real danger of breaking things immediately.

@Pierre-Sassoulas
Copy link
Member Author

Thank you for your trust πŸ˜„ But to explain better : As we did not change pylint's code the functional test are simply solidifying the current behavior of the code. The tests I removed were opening the file from tests/extension/data and asserting less than what the functional are asserting now. Two other files that appear as "removed" are actually one that I merged together (overlapping_exceptions). I checked that there was an actual output produced by the right expansion. If there is an issue in those it was preexisting. there are still some unittests for extansions in tests/extension.

This permit to upgrade the fixtures in pre-commit.
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the migrate-extension-tests-to-functional branch from 7969d8d to 14f7b7c Compare November 22, 2021 22:09
@cdce8p
Copy link
Member

cdce8p commented Nov 22, 2021

Just noticed something. We do have the tests/functional/ext folder. Maybe that would be a better place as it was meant for extensions.

@Pierre-Sassoulas Pierre-Sassoulas force-pushed the migrate-extension-tests-to-functional branch from 822b650 to e67026d Compare November 23, 2021 08:39
@Pierre-Sassoulas Pierre-Sassoulas merged commit 2c68713 into main Nov 23, 2021
@Pierre-Sassoulas Pierre-Sassoulas deleted the migrate-extension-tests-to-functional branch November 23, 2021 08:50
@Pierre-Sassoulas
Copy link
Member Author

Maybe that would be a better place as it was meant for extensions.

Done, alongside some renaming, directory representing the name of the plugin creation and some name cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants