Skip to content

Add support for a Mocked Server

labels: "Enhancement" "GSoC 2022" "GSoC 2022 - Phase 1"

Description

Sometimes the server fails to send a confirmation email. Screenshot_2022-07-22_at_22.33.35

Introducing a way to Mock a server response would both unblock the developers and allow for future support in Unit tests.

  • Add an interface to abstract the network layer away
  • Make URLSession conform to the API provider interface
  • Add a mock that conforms to the interface too

closes #(46)

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

N/a

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Merge request reports