Skip to content

[6.0.x] mark: fix pylint not-callable error on pytest.mark.parametrize(...), again #7566

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

Merged
merged 2 commits into from
Jul 29, 2020

Conversation

bluetech
Copy link
Member

Backport of #7565.

mark: fix pylint not-callable error on pytest.mark.parametrize(...), again
(cherry picked from commit f9837f9)
Comment on lines 479 to 481
parametrize = _ParametrizeMarkDecorator(Mark("parametrize ", (), {}))
usefixtures = _UsefixturesMarkDecorator(Mark("usefixtures ", (), {}))
filterwarnings = _FilterwarningsMarkDecorator(Mark("filterwarnings ", (), {}))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
parametrize = _ParametrizeMarkDecorator(Mark("parametrize ", (), {}))
usefixtures = _UsefixturesMarkDecorator(Mark("usefixtures ", (), {}))
filterwarnings = _FilterwarningsMarkDecorator(Mark("filterwarnings ", (), {}))
parametrize = _ParametrizeMarkDecorator(Mark("parametrize", (), {}))
usefixtures = _UsefixturesMarkDecorator(Mark("usefixtures", (), {}))
filterwarnings = _FilterwarningsMarkDecorator(Mark("filterwarnings", (), {}))

Copy link
Member

Choose a reason for hiding this comment

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

probably worth fixing this before the backport

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I am going to fix in master and add the backport of that as well to this PR.

rodrigoalmeida94 pushed a commit to up42/up42-py that referenced this pull request Jul 29, 2020
@bluetech bluetech merged commit d46fe88 into pytest-dev:6.0.x Jul 29, 2020
rodrigoalmeida94 pushed a commit to up42/up42-py that referenced this pull request Jul 29, 2020
* Ignore order of settings list

* Remove duplicated method

* Fix name of test

* Add mock test for jobcollection download_result

* Add mock jobcollection with multiple jobs

* Add test for unpacking is False

* Make sure folder structure is kept when unpacking

* Remove warning for exotic file formats

* Add merge results from job collection

* format

* Add live test with download DIMAP file

* Make sure order of results doesn't break tests

* Update fixture name

* Update tests name

* Use context manager for openinhg tarfile

* Rename tempdir to prevent shadowing of module

* Use loop to register responses

* Use Path name property to prevent confusion of files

* Ignore not-callable temporarily (relates to pytest-dev/pytest#7566)

* Remove try except block

* Glob in output_folder_path
rodrigoalmeida94 pushed a commit to up42/up42-py that referenced this pull request Jul 31, 2020
* Ignore order of settings list

* Remove duplicated method

* Fix name of test

* Add mock test for jobcollection download_result

* Add mock jobcollection with multiple jobs

* Add test for unpacking is False

* Make sure folder structure is kept when unpacking

* Remove warning for exotic file formats

* Add merge results from job collection

* format

* Add live test with download DIMAP file

* Make sure order of results doesn't break tests

* Update fixture name

* Update tests name

* Use context manager for openinhg tarfile

* Rename tempdir to prevent shadowing of module

* Use loop to register responses

* Use Path name property to prevent confusion of files

* Ignore not-callable temporarily (relates to pytest-dev/pytest#7566)

* Remove try except block

* Add subscriptable class

* Add job iterator helper

* Add get_jobs_info and get_jobs_status methods

* Use job_iterator in download results

* Clarify returns

* Add iter method

* Remove disabling of duplicate-code

* format

* remove duplicated merge block

* Add test with all job collection fails / one job in jobcollection fails

* Add is_succeeded property to job

* Make sure jobcollection is returned if one job or all job fails

* Add only_succeded flag to job iterator

* job_iterator to apply

* Raise value error when all jobs failed, empty jobcollection

* Add docstring to apply

* Add doctring

* Remove space

* Add TODOs

* Change raise valueerror positions
@bluetech bluetech deleted the pylint-callable-2-6.0.x branch August 24, 2020 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants