Skip to content

Feat(add tests) to repose#131

Merged
mimi1vx merged 2 commits intoopenSUSE:masterfrom
mimi1vx:feat-add-pytest-test-suite-786679679435416017
Dec 22, 2025
Merged

Feat(add tests) to repose#131
mimi1vx merged 2 commits intoopenSUSE:masterfrom
mimi1vx:feat-add-pytest-test-suite-786679679435416017

Conversation

@mimi1vx
Copy link
Member

@mimi1vx mimi1vx commented Dec 22, 2025

This add minimal test suite covering about 50% of repose and GithubCI run with python 3.11 and 3.13

Adds a pytest-based test suite for the repose application, including coverage reporting with pytest-cov.

The new test suite includes:
- A `tests/` directory with a standard structure.
- `requirements-test.txt` for testing dependencies.
- A shared mock for SSH interactions in `tests/conftest.py`.
- Unit tests for argument parsing (`tests/test_argparsing.py`), connection handling (`tests/test_connection.py`), and the 'add' command logic (`tests/test_add_command.py`).

The tests for the 'add' command demonstrate how to mock dependencies and handle the application's use of `ThreadPoolExecutor` for concurrent operations.
@mimi1vx mimi1vx force-pushed the feat-add-pytest-test-suite-786679679435416017 branch from 287dcf3 to f279947 Compare December 22, 2025 15:33
@mimi1vx mimi1vx force-pushed the feat-add-pytest-test-suite-786679679435416017 branch from f279947 to 2bd5ae9 Compare December 22, 2025 15:36
@mimi1vx mimi1vx merged commit 0f64996 into openSUSE:master Dec 22, 2025
3 checks passed
@mimi1vx mimi1vx deleted the feat-add-pytest-test-suite-786679679435416017 branch December 22, 2025 19:04
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.

1 participant