-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
118 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added Async functions for Geth TxPool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import pytest | ||
|
||
from web3 import Web3 | ||
|
||
|
||
class GoEthereumAsyncTxPoolModuleTest: | ||
|
||
@pytest.mark.asyncio | ||
async def test_async_geth_txpool_inspect(self, async_w3: "Web3") -> None: | ||
test_data = await async_w3.geth.txpool.inspect() # type: ignore | ||
assert "pending" in test_data | ||
|
||
@pytest.mark.asyncio | ||
async def test_async_geth_txpool_content(self, async_w3: "Web3") -> None: | ||
test_data = await async_w3.geth.txpool.content() # type: ignore | ||
assert "pending" in test_data | ||
|
||
@pytest.mark.asyncio | ||
async def test_async_geth_txpool_status(self, async_w3: "Web3") -> None: | ||
test_data = await async_w3.geth.txpool.status() # type: ignore | ||
assert "pending" in test_data | ||
|
||
|
||
class GoEthereumTxPoolModuleTest: | ||
|
||
def test_geth_txpool_inspect(self, web3: "Web3") -> None: | ||
test_data = web3.geth.txpool.inspect() # type: ignore | ||
assert "pending" in test_data | ||
|
||
def test_geth_txpool_content(self, web3: "Web3") -> None: | ||
test_data = web3.geth.txpool.content() # type: ignore | ||
assert "pending" in test_data | ||
|
||
def test_geth_txpool_status(self, web3: "Web3") -> None: | ||
test_data = web3.geth.txpool.status() # type: ignore | ||
assert "pending" in test_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters