Skip to content

✅ test: Add CLI tests with mocks#2

Merged
outscale-rce merged 2 commits intomainfrom
test/integrate_tests
Jul 15, 2025
Merged

✅ test: Add CLI tests with mocks#2
outscale-rce merged 2 commits intomainfrom
test/integrate_tests

Conversation

@outscale-ykr
Copy link
Contributor

  • Test CLI commands using pytest and Click's CliRunner
  • Mock API requests to avoid real network calls
  • Mock filesystem access (os.path.expanduser) to isolate config files and cache folder
  • Mock subprocess.run for commands invoking kubectl or shell processes
  • Mock time.sleep and os.fork for background processing logic
  • Add GitHub Actions workflow to run tests on pull requests to main

- Test CLI commands using pytest and Click's CliRunner
- Mock API requests to avoid real network calls
- Mock filesystem access (os.path.expanduser) to isolate config files and cache folder
- Mock subprocess.run for commands invoking kubectl or shell processes
- Mock time.sleep and os.fork for background processing logic
- Add GitHub Actions workflow to run tests on pull requests to main
@outscale-rce outscale-rce merged commit baa8f3a into main Jul 15, 2025
3 checks passed
@outscale-ykr outscale-ykr deleted the test/integrate_tests branch July 31, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants