httpretty seems abandonned and only supports python up to 3.9, in practice it works with 3.11 but with 3.12 it stops working.
Replace httpretty with httmock, which is already used across the rest of the test suite. This removes the httpretty dependency entirely.