-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore: make use of temporary directory for all source tests #487
base: main
Are you sure you want to change the base?
Conversation
Trivy scanning results. Report Summary ┌─────────┬──────┬─────────────────┬─────────┐
For OSS Maintainers: VEX NoticeIf you're an OSS maintainer and Trivy has detected vulnerabilities in your project that you believe are not actually exploitable, consider issuing a VEX (Vulnerability Exploitability eXchange) statement. To disable this notice, set the TRIVY_DISABLE_VEX_NOTICE environment variable. uv.lock (uv)Total: 21 (MEDIUM: 11, HIGH: 9, CRITICAL: 1) ┌──────────────────┬────────────────┬──────────┬────────┬───────────────────┬───────────────┬──────────────────────────────────────────────────────────────┐ |
Code Coverage Summary
Diff against main
Results for commit: aaf4417 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
def configure_local_storage_dir(): | ||
random_tmp_dir = Path(tempfile.mkdtemp()) | ||
os.environ[LOCAL_STORAGE_DIR_ENV] = random_tmp_dir.as_posix() | ||
yield | ||
shutil.rmtree(random_tmp_dir) |
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.
Non-blocking:
This should behave the same as the longer version:
def configure_local_storage_dir(): | |
random_tmp_dir = Path(tempfile.mkdtemp()) | |
os.environ[LOCAL_STORAGE_DIR_ENV] = random_tmp_dir.as_posix() | |
yield | |
shutil.rmtree(random_tmp_dir) | |
def configure_local_storage_dir(tmpdir): | |
os.environ[LOCAL_STORAGE_DIR_ENV] = tmpdir |
No description provided.