Test `*_PROXY` environment variable usage
Author: niklasmohrinCreated Mar 9, 2025Updated Mar 9, 2025
Labelstestingchore
Similarly to what I propose in #390, we should have one or two tests that ensure that we use the HTTP_PROXY, HTTPS_PROXY, and so on environment variables correctly. This test should, in addition to what I propose in #390, spin up a local proxy server so that we can check that it got the request from the local tealdeer instance.
The value of these tests is that we might forget about proxies when changing the code, like here: https://github.com/tealdeer-rs/tealdeer/pull/417#discussion_r1976426616
Source: tealdeer-rs/tealdeer