3cn-ecn/nantralPlatform

[TICKET] Mock external API calls in tests

Opened this issue · 0 comments

Description

We should mock the calls to the geolocalisation API in our tests suite, to avoid waiting the response from the external APIs when running the tests. Currently, some tests for the roommates card make calls to the external geolocalisation API, which slow down the tests considerably (you can check it by running the tests without internet connexion on your device)

Definition of done

The ticket can be considered as done if all theses criteria are completed:

  • The tests are successful even when you de-activate your wi-fi on your computer

Mock-Up and Designs

None

Technical strategy

Describe in multiple steps how you will implement your ticket. The more precise you are, the easier it will be to develop afterwards.

[TODO]

  • ...
  • ...