You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpbin is an amazing web service for testing HTTP libraries. It has several great endpoints that can test pretty much everything you need in a HTTP library. The only problem is: maybe you don't want to wait for your tests to travel across the Internet and back to make assertions against a remote web service.
4
+
httpbin is an amazing web service for testing HTTP libraries. It has several
5
+
great endpoints that can test pretty much everything you need in a HTTP
6
+
library. The only problem is: maybe you don't want to wait for your tests to
7
+
travel across the Internet and back to make assertions against a remote web
8
+
service.
5
9
6
-
Enter pytest-httpbin. Pytest-httpbin creates a pytest "fixture" that is dependency-injected into your tests. It automatically starts up a HTTP server in a separate thread running httpbin and provides your test with the URL in the fixture. Check out this example:
10
+
Enter pytest-httpbin. Pytest-httpbin creates a pytest "fixture" that is
11
+
dependency-injected into your tests. It automatically starts up a HTTP server
12
+
in a separate thread running httpbin and provides your test with the URL in the
0 commit comments