MCPcopy Create free account
hub / github.com/apify/impit / test_setattr

Function test_setattr

impit-python/test/response_test.py:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6async def test_setattr() -> None:
7 response = Response(200)
8
9 assert response.status_code == 200
10 assert getattr(response, 'test', None) is None
11 setattr(response, 'test', 'test_value') # noqa: B010
12 assert getattr(response, 'test', None) == 'test_value'
13
14
15def test_response_constructor_with_status() -> None:

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…