conda-incubator / conda-store

Data science environments, for collaboration. ✨
https://conda.store
BSD 3-Clause "New" or "Revised" License
143 stars 46 forks source link

MAINT - Mock out calls to `conda-lock` for `test_solve_lockfile` #834

Closed peytondmurray closed 3 months ago

peytondmurray commented 3 months ago

Partially addresses #830.

Description

Currently test_solve_lockfile calls out to conda-lock and also invokes conda info, both of which are quite slow. This PR mocks out calls to conda-lock and conda in conda_store_server/tests/test_actions.py::test_solve_lockfile, and only checks that the invocations are correctly formed, not that conda-lock successfully executes. This reduces the runtime of the test to near zero.

Pull request checklist

netlify[bot] commented 3 months ago

Deploy Preview for conda-store canceled.

Name Link
Latest commit a90c80aefff9bde0ae8f475203889d6ba398ad08
Latest deploy log https://app.netlify.com/sites/conda-store/deploys/666a16fc715316000867c71c