Skip to content

Commit

Permalink
test_: add tests for wakuext_SavedAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
churik committed Feb 11, 2025
1 parent 17765b0 commit c099460
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests-functional/tests/test_wakuext_savedAddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from test_cases import StatusBackendTestCase


@pytest.mark.rpc
@pytest.mark.wallet
class TestSavedAddresses(StatusBackendTestCase):

@pytest.mark.parametrize(
Expand Down Expand Up @@ -137,11 +139,3 @@ def test_remaining_capacity_for_saved_addresses(self):
response = self.rpc_client.rpc_request("wakuext_remainingCapacityForSavedAddresses", [is_test])
self.rpc_client.verify_is_json_rpc_error(response)
assert response.json()["error"]["message"] == "no more save addresses can be added"

# Uncomment when answer is ready: testing adding beyond capacity
# logging.info("Step: Attempting to add one more address beyond capacity")
# not_added_address = "0x6621930f8c6c992ef708b2d097cc9df860dede0d"
# self.rpc_client.rpc_valid_request("wakuext_upsertSavedAddress", [{"address": not_added_address, "name": "a1", "isTest": is_test}])
# response = self.rpc_client.rpc_valid_request("wakuext_getSavedAddressesPerMode", [is_test])
# assert all(entry["address"] != not_added_address for entry in response.json()["result"])
# assert len(response.json()["result"]) == 20

0 comments on commit c099460

Please sign in to comment.