Skip to content

Allow custom temp directories with CLIRunner.isolated_filesystem#1715

Merged
davidism merged 1 commit into
pallets:masterfrom
MLH-Fellowship:maaz/issue-395
Feb 15, 2021
Merged

Allow custom temp directories with CLIRunner.isolated_filesystem#1715
davidism merged 1 commit into
pallets:masterfrom
MLH-Fellowship:maaz/issue-395

Conversation

@Diaga
Copy link
Copy Markdown
Contributor

@Diaga Diaga commented Nov 23, 2020

CLIRunner.isolated_filesystem accepts a custom argument tempdir. If user specifies custom tempdir, we do not delete it afterwards assuming user will clean up afterwards.

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

Comment thread src/click/testing.py Outdated
Comment thread tests/test_testing.py Outdated
@flosincapite
Copy link
Copy Markdown

Looks good to me!

Comment thread src/click/testing.py Outdated
Co-authored-by: David Lord <davidism@gmail.com>
@davidism davidism added this to the 8.0.0 milestone Feb 15, 2021
@davidism davidism merged commit b8a33bf into pallets:master Feb 15, 2021
@davidism davidism deleted the maaz/issue-395 branch February 15, 2021 22:09
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow custom retainable temporary directories in CLIRunner.isolated_filesystem

3 participants