We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think this could be done with a fixture:
@pytest.fixture def temporary_environ(): old_environ = os.environ.copy() yield os.environ = old_environ
Then on the test:
@pytest.mark.usefixtures("temporary_environ") def test_init_with_existing_cachedir(fixture_dir, requests_mock, tmpdir):
I think you can even stack it:
@pytest.fixture def temporary_xdg_cache_home(tmpdir): old_environ = os.environ.copy() os.environ['XDG_CACHE_HOME'] = tmpdir.strpath yield os.environ = old_environ
_Originally posted by @ekohl in #58
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think this could be done with a fixture:
Then on the test:
I think you can even stack it:
_Originally posted by @ekohl in #58
The text was updated successfully, but these errors were encountered: