Skip to content

Add docs on how to disable cache provider #1058

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

Conversation

nicoddemus
Copy link
Member

After discussion in #1029

I suggest we start to advise people who are having problems related to cache to use this trick so it doesn't affect their use of pytest-2.8 and force them to pin down to pytest-2.7.X.

@RonnyPfannschmidt
Copy link
Member

can it actually be reenabled?

@nicoddemus
Copy link
Member Author

Do you mean without removing the option from pytest.ini manually? I don't know the order of precedence in this cases, but I would guess command line wins configuration.

[pytest]
addopts = -p no:cacheprovider


Copy link
Contributor

Choose a reason for hiding this comment

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

i wonder if it's the right thing to advise to do this on a per-project level. You might want cache behaviour on dev machines but not on CI systems. Therefore we should rather advise for setting the environment variable PYTEST_ADDOPTS for respective environments.

Copy link
Contributor

Choose a reason for hiding this comment

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

in addition we should see to add some info about environment variables with py.test --help i guess. (like "tox -h" does) (but than can be done in a separate future PR).

@nicoddemus
Copy link
Member Author

Added environment variables to --help as requested, and moved plugin disabling to plugins.txt. I think the more detailed explanation fits there better.

@nicoddemus nicoddemus mentioned this pull request Sep 29, 2015
@nicoddemus
Copy link
Member Author

Can we merge this?

RonnyPfannschmidt added a commit that referenced this pull request Oct 1, 2015
Add docs on how to disable cache provider
@RonnyPfannschmidt RonnyPfannschmidt merged commit 688f955 into pytest-dev:master Oct 1, 2015
@RonnyPfannschmidt
Copy link
Member

of course, sorry for the delay

@nicoddemus
Copy link
Member Author

No worries! 😄

@nicoddemus nicoddemus deleted the doc-how-disable-cache branch October 1, 2015 11:17
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.

3 participants