mirror of
https://github.com/status-im/status-go.git
synced 2025-02-10 13:56:39 +00:00
test_: Code Migration from status-cli-tests with cleanup
This commit is contained in:
parent
4e2fd8fbc0
commit
4a663a08a8
@ -9,7 +9,6 @@ class ContactRequestValidator:
|
|||||||
self.response = response
|
self.response = response
|
||||||
|
|
||||||
def validate_response_structure(self):
|
def validate_response_structure(self):
|
||||||
"""Check the overall structure of the response."""
|
|
||||||
assert self.response.get("jsonrpc") == "2.0", "Invalid JSON-RPC version"
|
assert self.response.get("jsonrpc") == "2.0", "Invalid JSON-RPC version"
|
||||||
assert "result" in self.response, "Missing 'result' in response"
|
assert "result" in self.response, "Missing 'result' in response"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user