-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sidechain-2.5-integ
- Loading branch information
Showing
15 changed files
with
1,112 additions
and
6 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
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,28 @@ | ||
from tests.integration.integration_test_case import IntegrationTestCase | ||
from tests.integration.it_utils import test_async_and_sync | ||
from tests.integration.reusable_values import AMM_ASSET, AMM_ASSET2 | ||
from xrpl.models.requests.amm_info import AMMInfo | ||
|
||
asset = AMM_ASSET | ||
asset2 = AMM_ASSET2 | ||
|
||
|
||
class TestAMMInfo(IntegrationTestCase): | ||
@test_async_and_sync(globals()) | ||
async def test_basic_functionality(self, client): | ||
amm_info = await client.request( | ||
AMMInfo( | ||
asset=asset, | ||
asset2=asset2, | ||
) | ||
) | ||
|
||
self.assertEqual(float(amm_info.result["amm"]["amount"]), 1250) | ||
self.assertEqual( | ||
amm_info.result["amm"]["amount2"], | ||
{ | ||
"currency": asset2.currency, | ||
"issuer": asset2.issuer, | ||
"value": "250", | ||
}, | ||
) |
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,10 @@ | ||
from tests.integration.integration_test_case import IntegrationTestCase | ||
from tests.integration.it_utils import test_async_and_sync | ||
from xrpl.models.requests import ServerDefinitions | ||
|
||
|
||
class TestServerDefinitions(IntegrationTestCase): | ||
@test_async_and_sync(globals()) | ||
async def test_basic_functionality(self, client): | ||
response = await client.request(ServerDefinitions()) | ||
self.assertTrue(response.is_successful()) |
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
Oops, something went wrong.