Skip to content

Commit

Permalink
Fix bundler E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Mar 18, 2024
1 parent d5372b6 commit 52acd5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
DJANGO_SETTINGS_MODULE: config.settings.test
ETHEREUM_MAINNET_NODE: ${{ secrets.ETHEREUM_MAINNET_NODE }}
ETHEREUM_POLYGON_NODE: ${{ secrets.ETHEREUM_POLYGON_NODE }}
BUNDLER_CLIENT_URL: ${{ secrets.BUNDLER_CLIENT_URL }}
- name: Test packaging
run: pip install -e .
- name: Send results to coveralls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from ...account_abstraction import BundlerClient, UserOperation, UserOperationReceipt
from ..mocks.mock_bundler import (
safe_4337_user_operation_hash_mock,
supported_entrypoint_mock,
user_operation_mock,
user_operation_receipt_mock,
)
Expand Down Expand Up @@ -68,6 +67,8 @@ def test_get_user_operation_and_receipt(self):
)

def test_supported_entry_points(self):
self.assertEqual(
self.bundler.supported_entry_points(), supported_entrypoint_mock["result"]
supported_entry_points = self.bundler.supported_entry_points()
self.assertIn(len(supported_entry_points), (1, 2))
self.assertIn(
"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", supported_entry_points
)

0 comments on commit 52acd5e

Please sign in to comment.