-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[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
Conversation
mark: fix pylint not-callable error on pytest.mark.parametrize(...), again (cherry picked from commit f9837f9)
src/_pytest/mark/structures.py
Outdated
parametrize = _ParametrizeMarkDecorator(Mark("parametrize ", (), {})) | ||
usefixtures = _UsefixturesMarkDecorator(Mark("usefixtures ", (), {})) | ||
filterwarnings = _FilterwarningsMarkDecorator(Mark("filterwarnings ", (), {})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parametrize = _ParametrizeMarkDecorator(Mark("parametrize ", (), {})) | |
usefixtures = _UsefixturesMarkDecorator(Mark("usefixtures ", (), {})) | |
filterwarnings = _FilterwarningsMarkDecorator(Mark("filterwarnings ", (), {})) | |
parametrize = _ParametrizeMarkDecorator(Mark("parametrize", (), {})) | |
usefixtures = _UsefixturesMarkDecorator(Mark("usefixtures", (), {})) | |
filterwarnings = _FilterwarningsMarkDecorator(Mark("filterwarnings", (), {})) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
(cherry picked from commit 54e08b7)
* 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
* 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
Backport of #7565.