vliz-be-opsci / py-sema

Overall parent of all packages involving semantic manipulation of RDF data.
MIT License
0 stars 0 forks source link

Reduce Dependency on External Services by Using Local HTTP Server for Tests #66

Open cedricdcc opened 1 month ago

cedricdcc commented 1 month ago

Our current test suite heavily depends on external services, which can lead to instability and unpredictability in our tests due to potential changes in the files.To improve the reliability and control over our test outcomes, we should implement a local HTTP server that can be spun up during tests. This will allow us to mock external services, providing consistent and predictable responses.

Proposed solution

marc-portier commented 1 month ago

inspiration -- use the http server we introduced in https://github.com/vliz-be-opsci/py-trav-harv/blob/main/tests/conftest.py

marc-portier commented 1 month ago

note that also the current discovery test already has live URL dependencies to be taken into account for this.

https://github.com/vliz-be-opsci/py-sema/blob/main/tests/discovery/test_url_to_graph.py