Skip to content

Commit c0c5f82

Browse files
committed
test: rename response test functions to include 'devopness' prefix for clarity
1 parent c1b3387 commit c0c5f82

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/sdks/python/tests/core/test_response.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def build_response(
3434
return response
3535

3636

37-
def test_response_with_dict() -> None:
37+
def test_devopness_response_with_dict() -> None:
3838
response = build_response({"id": 123})
3939
dev_response: DevopnessResponse[DummyModel] = DevopnessResponse(
4040
response,
@@ -45,7 +45,7 @@ def test_response_with_dict() -> None:
4545
assert dev_response.data.id == 123
4646

4747

48-
def test_response_with_int() -> None:
48+
def test_devopness_response_with_int() -> None:
4949
response = build_response(42)
5050
response.read.return_value = b"42"
5151

@@ -57,7 +57,7 @@ def test_response_with_int() -> None:
5757
assert dev_response.data == 42
5858

5959

60-
def test_response_with_str() -> None:
60+
def test_devopness_response_with_str() -> None:
6161
response = build_response("Hello")
6262
response.read.return_value = b"Hello"
6363

@@ -69,7 +69,7 @@ def test_response_with_str() -> None:
6969
assert dev_response.data == "Hello"
7070

7171

72-
def test_response_with_float() -> None:
72+
def test_devopness_response_with_float() -> None:
7373
response = build_response(3.14)
7474
response.read.return_value = b"3.14"
7575

@@ -81,7 +81,7 @@ def test_response_with_float() -> None:
8181
assert dev_response.data == 3.14
8282

8383

84-
def test_response_with_empty_body() -> None:
84+
def test_devopness_response_with_empty_body() -> None:
8585
response = build_response(None)
8686
response.read.return_value = b""
8787

@@ -92,7 +92,7 @@ def test_response_with_empty_body() -> None:
9292
assert dev_response.data is None
9393

9494

95-
def test_response_with_action_id() -> None:
95+
def test_devopness_response_with_action_id() -> None:
9696
headers = {"x-devopness-action-id": "456"}
9797
response = build_response({}, headers=headers)
9898

@@ -103,7 +103,7 @@ def test_response_with_action_id() -> None:
103103
assert dev_response.action_id == 456
104104

105105

106-
def test_response_with_invalid_action_id() -> None:
106+
def test_devopness_response_with_invalid_action_id() -> None:
107107
headers = {"x-devopness-action-id": "invalid"}
108108
response = build_response({}, headers=headers)
109109

@@ -114,7 +114,7 @@ def test_response_with_invalid_action_id() -> None:
114114
assert dev_response.action_id is None
115115

116116

117-
def test_response_with_pagination_last_page() -> None:
117+
def test_devopness_response_with_pagination_last_page() -> None:
118118
headers = {
119119
"link": '<https://api.example.com?page=5>; rel="last", <https://api.example.com?page=1>; rel="first"' # noqa: E501
120120
}
@@ -127,7 +127,7 @@ def test_response_with_pagination_last_page() -> None:
127127
assert dev_response.page_count == 5
128128

129129

130-
def test_response_with_no_pagination() -> None:
130+
def test_devopness_response_with_no_pagination() -> None:
131131
response = build_response({})
132132

133133
dev_response: DevopnessResponse = DevopnessResponse(

0 commit comments

Comments
 (0)