bloom-housing / bloom

Bloom is Exygy’s affordable housing platform. Bloom's goal is to be a single entry point for affordable housing seekers and a hub for application and listing management for developers.
https://bloomhousing.com
Apache License 2.0
33 stars 25 forks source link

fix: remove db dependency from unit tests #4262

Closed ludtkemorgan closed 2 months ago

ludtkemorgan commented 2 months ago

There are several backend unit tests that happen to be working because we have a database running while the tests are running. If this were to not be the case these tests would start failing and there is even a failing test semi-related to this issue.

This PR mocks out all db calls that are needed in tests that are not already mocked out.

To test:

netlify[bot] commented 2 months ago

Deploy Preview for bloom-exygy-dev ready!

Name Link
Latest commit 08aceabc03a81f36f51eca62f3e0bb302ba1871c
Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/66c4d4b63f4485000805e99d
Deploy Preview https://deploy-preview-4262--bloom-exygy-dev.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 2 months ago

Deploy Preview for partners-bloom-dev ready!

Name Link
Latest commit 08aceabc03a81f36f51eca62f3e0bb302ba1871c
Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/66c4d4b6b168d10008a1e319
Deploy Preview https://deploy-preview-4262--partners-bloom-dev.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.