from pathlib import Path from httphound.main import BaseProxyTest, ProxyConfig class BasicPassTest(BaseProxyTest): """Minimal test that will always pass. As for other tests the haproxy binary must be present somewhere on the filesystem. """ def __init__(self): super().__init__() self.description = "Basic request" # Default address of proxy to listen is 127.0.0.1:4242 self.url = "http://127.0.0.1:4242" # Customize the haproxy path self.proxy_config = ProxyConfig( binary_path=Path.home() / "bin/haproxy" ) async def run_test(self): """This is the bare minimum to run the test """ await self.make_request() # Returning True as this must always pass return True