Add extensive test suite and fix CLI bugs#21
Conversation
Added a full test suite covering API, CLI, configuration, IO, and models. Tests mock heavy dependencies (Fairchem, Torch-Sim) to run without HF_TOKEN or GPU. Fixed bugs in `src/gpuma/cli.py` where API functions were called with incorrect arguments. Added `tests/conftest.py` with robust fixtures for mocking. Verified all tests pass and code complies with linting rules. Co-authored-by: niklashoelter <83964137+niklashoelter@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR adds a comprehensive test suite to the
gpumarepository, covering all major components including the API, CLI, configuration management, IO handling, and model loading logic.Key changes:
tests/directory withconftest.pyand test files for each module.mock_load_modelsfixture inconftest.pyto automatically mockfairchemandtorch-simmodel loading, ensuring tests run withoutHF_TOKENor external network access.src/gpuma/cli.py:optimize_single_xyz_filewas called with unexpectedchargeandmultiplicityarguments. Updated to set these inconfiginstead.optimize_ensemble_smileswas called with unexpectednum_conformersargument. Updated to set inconfig.cmd_convertsignature mismatch fixed.ruff.Tests can be run with
python -m pytest.PR created automatically by Jules for task 10145551210034948829 started by @niklashoelter