-
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
4 changed files
with
13 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,6 @@ | |
) | ||
from web3 import Web3 | ||
|
||
SET_TEXT_RESOLVER_NOT_FOUND_CASES = ( | ||
("avatar", "tester.jpeg"), | ||
("email", "[email protected]"), | ||
("url", "http://example.com"), | ||
("description", "a test"), | ||
("notice", "this contract is a test contract"), | ||
) | ||
GET_TEXT_TEST_CASES = ( | ||
("avatar", "tester.jpeg"), | ||
("email", "[email protected]"), | ||
|
@@ -26,7 +19,7 @@ | |
) | ||
|
||
|
||
@pytest.mark.parametrize("key,expected", SET_TEXT_RESOLVER_NOT_FOUND_CASES) | ||
@pytest.mark.parametrize("key,expected", GET_TEXT_TEST_CASES) | ||
def test_set_text_resolver_not_found(ens, key, expected): | ||
with pytest.raises(ResolverNotFound): | ||
ens.set_text("tld", key, expected) | ||
|
@@ -92,7 +85,7 @@ def test_get_text_for_resolver_with_unsupported_function(ens): | |
|
||
|
||
@pytest.mark.asyncio | ||
@pytest.mark.parametrize("key,expected", SET_TEXT_RESOLVER_NOT_FOUND_CASES) | ||
@pytest.mark.parametrize("key,expected", GET_TEXT_TEST_CASES) | ||
async def test_async_set_text_resolver_not_found(async_ens, key, expected): | ||
with pytest.raises(ResolverNotFound): | ||
await async_ens.set_text("tld", key, expected) | ||
|
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