DataJunction / dj

A metrics platform.
http://datajunction.io
MIT License
35 stars 15 forks source link

Make Python client unit tests fast again. #1171

Closed agorajek closed 2 months ago

agorajek commented 2 months ago

Summary

I wanted to remove pydantic from the client, but as I started running unit tests it was clear that they got to a point where development was too slow. Fixed them using the module level scope on the contest fixtures. Kind of like with the server side.

Test Plan

pdm run pytest -n 4 tests  382.38s user 16.06s system 238% cpu 2:46.71 total

Deployment Plan

n/a

netlify[bot] commented 2 months ago

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
Latest commit e11655253f89d201ae1ef9ab6891a755e7aa492a
Latest deploy log https://app.netlify.com/sites/thriving-cassata-78ae72/deploys/66eafe1e7005be000855533f