Skip to content

#4304 the stepwise plugin must be blocked on cacheprovider plugin block request #4307

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 8 commits into from
Nov 8, 2018

Conversation

fzarifian
Copy link
Contributor

@fzarifian fzarifian commented Nov 4, 2018

Thanks for submitting a PR, your contribution is really appreciated!

Here's a quick checklist that should be present in PRs (you can delete this text from the final description, this is
just a guideline):

  • Create a new changelog file in the changelog folder, with a name like <ISSUE NUMBER>.<TYPE>.rst. See changelog/README.rst for details.
  • Target the master branch for bug fixes, documentation updates and trivial changes.
  • Target the features branch for new features and removals/deprecations.
  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.

Unless your change is trivial or a small documentation fix (e.g., a typo or reword of a small section) please:

  • Add yourself to AUTHORS in alphabetical order;

Fix #4304

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

thanks for providing this easily integrable workaround
this should serve well until we sort out plugin dependencies

@@ -476,6 +476,9 @@ def consider_preparse(self, args):
def consider_pluginarg(self, arg):
if arg.startswith("no:"):
name = arg[3:]
# PR #4304 : remove stepwise if cacheprovider is blocked
if name == "cacheprovider":
self.consider_pluginarg("no:stepwise")
Copy link
Member

Choose a reason for hiding this comment

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

please use self.set_blocked("stepwhise")

As mentionned by @RonnyPfannschmidt, use set_blocked on module stepwise (and it's brother pytest_stepwise like consider_pluginarg method does)
@codecov
Copy link

codecov bot commented Nov 5, 2018

Codecov Report

Merging #4307 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4307      +/-   ##
==========================================
+ Coverage   95.84%   95.85%   +<.01%     
==========================================
  Files         111      111              
  Lines       24882    24893      +11     
  Branches     2426     2431       +5     
==========================================
+ Hits        23848    23860      +12     
+ Misses        737      736       -1     
  Partials      297      297
Flag Coverage Δ
#docs 28.9% <0%> (ø) ⬆️
#doctesting 28.9% <0%> (ø) ⬆️
#linting 28.9% <0%> (ø) ⬆️
#linux 95.63% <100%> (+0.01%) ⬆️
#nobyte 91.84% <100%> (+0.65%) ⬆️
#numpy 93.02% <100%> (+51.34%) ⬆️
#pexpect 41.65% <7.14%> (-0.02%) ⬇️
#py27 94.02% <100%> (+0.02%) ⬆️
#py34 92.15% <100%> (+0.19%) ⬆️
#py35 92.16% <100%> (+0.68%) ⬆️
#py36 93.9% <100%> (+0.01%) ⬆️
#py37 92.2% <100%> (+0.06%) ⬆️
#trial 93.02% <100%> (+51.34%) ⬆️
#windows 93.96% <100%> (+0.73%) ⬆️
#xdist 93.72% <100%> (+0.15%) ⬆️
Impacted Files Coverage Δ
src/_pytest/config/__init__.py 95.02% <100%> (+0.01%) ⬆️
testing/test_pluginmanager.py 99.6% <100%> (+0.01%) ⬆️
src/_pytest/python.py 95.52% <0%> (-0.08%) ⬇️
testing/test_assertion.py 97.11% <0%> (-0.02%) ⬇️
src/_pytest/assertion/util.py 98.11% <0%> (-0.02%) ⬇️
testing/test_capture.py 99.23% <0%> (-0.02%) ⬇️
testing/test_collection.py 99.77% <0%> (ø) ⬆️
src/_pytest/main.py 96.89% <0%> (+0.01%) ⬆️
src/_pytest/capture.py 93.87% <0%> (+0.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4aa3c4f...f48a26f. Read the comment docs.

@nicoddemus
Copy link
Member

Thanks @fzarifian! Would you like to add yourself to AUTHORS?

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

great collaboration 👍

@nicoddemus
Copy link
Member

Hmm perhaps we should follow the general idea taken in #4335 and instead set active to False in the stepwise plugin if config doesn't have a cache attribute?

@nicoddemus
Copy link
Member

Hmm but I see this has the advantage of working with the standalone pytest-stepwise plugin too, although the current released version does not work with the latest pytest anyway.

@fzarifian
Copy link
Contributor Author

Thanks a lot for your help resolving the issue ;)
Have a nice day

@nicoddemus
Copy link
Member

In the end I don't think it matters much, merging. Thanks @fzarifian again!

@nicoddemus nicoddemus merged commit 423e199 into pytest-dev:master Nov 8, 2018
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.

Possible bug with the 3.10.0 release
3 participants