test_: Code Migration from status-cli-tests with cleanup

This commit is contained in:
shashankshampi 2024-10-30 21:26:36 +05:30 committed by Florin Barbu
parent 4e2fd8fbc0
commit 4a663a08a8
No known key found for this signature in database
GPG Key ID: 593D6DBC6D9E5095

View File

@ -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"