Skip to content

test: use subprocess.check_output() instead of subprocess.run() - #37

Merged
fghaas merged 1 commit into
cleura:mainfrom
fghaas:test-subprocess-check-output
Sep 2, 2026
Merged

test: use subprocess.check_output() instead of subprocess.run()#37
fghaas merged 1 commit into
cleura:mainfrom
fghaas:test-subprocess-check-output

Conversation

@fghaas

@fghaas fghaas commented Sep 2, 2026

Copy link
Copy Markdown
Contributor
  • Replace all subprocess.run() calls with subprocess.check_output()
  • Remove explicit returncode == 0 assertions (implicit in check_output)
  • Simplify TestOpenStackCloud tests by not catching
    CalledProcessError, but instead throwing it up the stack
  • Catch errors caused by the corresponding API endpoints not being
    available, and issue warnings for those instead.

Assisted-by: opencode/qwen3.6-35b-a3b-fp8

- Replace all subprocess.run() calls with subprocess.check_output()
- Remove explicit returncode == 0 assertions (implicit in check_output)
- Simplify TestOpenStackCloud tests by not catching
  CalledProcessError, but instead throwing it up the stack
- Catch errors caused by the corresponding API endpoints not being
  available, and issue warnings for those instead.

Assisted-by: opencode/qwen3.6-35b-a3b-fp8
@fghaas
fghaas force-pushed the test-subprocess-check-output branch from fe0167b to 0d804a2 Compare September 2, 2026 08:50
@fghaas
fghaas merged commit 0d804a2 into cleura:main Sep 2, 2026
6 checks passed
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