conda-incubator / conda-store

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

Test improvements - part 1 #919

Closed soapy1 closed 3 weeks ago

soapy1 commented 4 weeks ago

partially addresses https://github.com/conda-incubator/conda-store/issues/914

Description

This PR makes a few improvements to the tests for conda-store-server:

As a result of the updates to the fixtures, running tests should be much faster. Before this change, running locally

$ python -m pytest -m "not extended_prefix and not user_journey and not long_running_test" --durations=0 tests/
. . .
======================== 1 failed, 225 passed, 9 deselected, 2 xfailed, 1338 warnings in 1201.96s (0:20:01) ==============================

After,

==== 1 failed, 198 passed, 38 deselected, 816 warnings in 389.80s (0:06:29) =====

Note, this change is mostly because of marking some particularly long running tests.

Pull request checklist

netlify[bot] commented 4 weeks ago

Deploy Preview for conda-store ready!

Name Link
Latest commit 3095e670caf0fa06b6e770a89f4ae24408a27dcb
Latest deploy log https://app.netlify.com/sites/conda-store/deploys/671af0866942aa00085119ed
Deploy Preview https://deploy-preview-919--conda-store.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 4 weeks ago

Deploy Preview for conda-store canceled.

Name Link
Latest commit ee411719d67e578018f5aa8bf6fdd51c2cecbb4a
Latest deploy log https://app.netlify.com/sites/conda-store/deploys/671be0bc0f23800008c1df03