Skip to content

SCANPY-259 Refactor API download exception tests - #327

Closed
rombirli wants to merge 1 commit into
masterfrom
cursor/fix-s5778-download-tests-4de5
Closed

SCANPY-259 Refactor API download exception tests#327
rombirli wants to merge 1 commit into
masterfrom
cursor/fix-s5778-download-tests-4de5

Conversation

@rombirli

@rombirli rombirli commented Jul 8, 2026

Copy link
Copy Markdown

Part of

Summary

  • Move download test setup out of assertRaises contexts in API unit tests
  • Reuse pre-created BytesIO handles so exception assertions contain only the API call under test

Verification

  • python3 -m pytest tests/unit/test_api.py

Slack Thread

Open in Web Open in Cursor 

Co-authored-by: rombirli <rombirli@users.noreply.github.com>
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod Bot changed the title Refactor API download exception tests SCANPY-259 Refactor API download exception tests Jul 8, 2026
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Jul 8, 2026

Copy link
Copy Markdown

SCANPY-259

@gitar-bot

gitar-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Refactors API download exception tests to isolate API calls from setup logic by pre-creating file handles. No issues found.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqube-next

sonarqube-next Bot commented Jul 8, 2026

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed for 'Python Scanner'

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
0 Dependency risks
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

@rombirli rombirli closed this Jul 8, 2026
@rombirli
rombirli deleted the cursor/fix-s5778-download-tests-4de5 branch July 8, 2026 09:08
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.

2 participants