-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Using templates * removed response headers * Fixed fundings * Commit from GitHub Actions
- Loading branch information
Showing
8 changed files
with
101 additions
and
185 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
# import pytest | ||
import pytest | ||
|
||
# from stake.funding import FundingRequest | ||
from stake.funding import TransactionRecordRequest | ||
|
||
# @pytest.mark.vcr() | ||
# @pytest.mark.asyncio | ||
# async def test_list_fundings(tracing_client): | ||
# fundings = await tracing_client.fundings.list(FundingRequest()) | ||
# assert len(fundings) == 11 | ||
|
||
# @pytest.mark.vcr() | ||
# @pytest.mark.asyncio | ||
# async def test_cash_available(tracing_client): | ||
# cash_available = await tracing_client.fundings.cash_available() | ||
# assert cash_available.cash_available_for_withdrawal == 1000.0 | ||
# assert cash_available.cash_settlement[0].utc_time.month == 1 | ||
@pytest.mark.vcr() | ||
@pytest.mark.asyncio | ||
async def test_list_fundings(tracing_client): | ||
fundings = await tracing_client.fundings.list(TransactionRecordRequest()) | ||
assert len(fundings) == 2 | ||
|
||
# @pytest.mark.vcr() | ||
# @pytest.mark.asyncio | ||
# async def test_funds_in_flight(tracing_client): | ||
# funds_in_flight = await tracing_client.fundings.in_flight() | ||
# assert len(funds_in_flight) == 1 | ||
# assert funds_in_flight[0].transaction_type == "Poli" | ||
|
||
@pytest.mark.vcr() | ||
@pytest.mark.asyncio | ||
async def test_cash_available(tracing_client): | ||
cash_available = await tracing_client.fundings.cash_available() | ||
assert cash_available.cash_available_for_withdrawal == 1000.0 | ||
assert cash_available.cash_settlement[0].utc_time.month == 1 | ||
|
||
|
||
@pytest.mark.vcr() | ||
@pytest.mark.asyncio | ||
async def test_funds_in_flight(tracing_client): | ||
funds_in_flight = await tracing_client.fundings.in_flight() | ||
assert len(funds_in_flight) == 1 | ||
assert funds_in_flight[0].transaction_type == "Poli" |