Skip to content

Commit

Permalink
Fix and add tests for Method class
Browse files Browse the repository at this point in the history
- Fix some tests that were falsely passing

- Add tests for `is_property` flag for `Method` class
  • Loading branch information
fselmo committed Mar 8, 2022
1 parent 7c898f4 commit 9983dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/core/method-class/test_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_method_accepts_callable_for_selector():

def test_method_selector_fn_accepts_str():
method = Method(
is_property=True,
set_as_property=True,
json_rpc_method='eth_method',
)
assert method.method_selector_fn() == 'eth_method'
Expand Down Expand Up @@ -217,7 +217,7 @@ def test_default_input_munger_with_input_parameters():
),
(
{
'is_property': True,
'set_as_property': True,
'json_rpc_method': 'eth_chainId',
},
[],
Expand Down

0 comments on commit 9983dce

Please sign in to comment.