MCPcopy
hub / github.com/psf/requests / DummyAuth

Class DummyAuth

tests/test_requests.py:1214–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212
1213 def test_prepared_from_session(self, httpbin):
1214 class DummyAuth(requests.auth.AuthBase):
1215 def __call__(self, r):
1216 r.headers["Dummy-Auth-Test"] = "dummy-auth-test-ok"
1217 return r
1218
1219 req = requests.Request("GET", httpbin("headers"))
1220 assert not req.auth

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…