3cn-ecn / nantralPlatform

Nantral Platform is a website project for clubs, events and more in Centrale Nantes
https://nantral-platform.fr
MIT License
20 stars 1 forks source link

[TICKET] Mock external API calls in tests #1200

Open hydrielax opened 1 month ago

hydrielax commented 1 month ago

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:

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]