Tribler / py-ipv8

Python implementation of Tribler's IPv8 p2p-networking layer
GNU Lesser General Public License v3.0
229 stars 47 forks source link

Convert REST tests to use mocks #1305

Open qstokkink opened 2 months ago

qstokkink commented 2 months ago

Currently, the IPv8 REST API tests launch a web server for each unit test. This takes in the order of seconds per unit test.

These tests can be sped up to the order of milliseconds by feeding mocked requests into their appropriate REST handler methods directly.