Man, I feel you on the spaghetti code thing. I once spent hours debugging a python http request to send request with long poll setup because I didn’t modularize my code.
One thing that helped me was using `pytest` for testing. Mocking the server responses made it way easier to catch edge cases.
Also, check out `httpbin.org` for testing your requests. It’s free and super handy.
One thing that helped me was using `pytest` for testing. Mocking the server responses made it way easier to catch edge cases.
Also, check out `httpbin.org` for testing your requests. It’s free and super handy.
