-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
39 additions
and
8 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 |
---|---|---|
|
@@ -69,4 +69,5 @@ jobs: | |
xil/onezero.py \ | ||
xil/discount.py \ | ||
xil/mercantile.py \ | ||
xil/leumi.py \ | ||
# xil/poalim.py \ |
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 @@ | ||
# pylint: disable=missing-module-docstring, missing-function-docstring, redefined-outer-name | ||
import pandas as pd | ||
import pytest | ||
|
||
from xil._currencies import CurrencyCode | ||
from xil.leumi import get_leumi_df | ||
|
||
from ._test_df import _test_df_sanity | ||
|
||
|
||
@pytest.fixture | ||
def df() -> pd.DataFrame: | ||
return get_leumi_df() | ||
|
||
|
||
@pytest.fixture() | ||
def expected_currencies() -> list[CurrencyCode]: | ||
return [ | ||
CurrencyCode.USD, | ||
CurrencyCode.EUR, | ||
CurrencyCode.GBP, | ||
CurrencyCode.JPY, | ||
CurrencyCode.CHF, | ||
CurrencyCode.AUD, | ||
CurrencyCode.CAD, | ||
CurrencyCode.ZAR, | ||
CurrencyCode.AED, | ||
CurrencyCode.SEK, | ||
CurrencyCode.NOK, | ||
CurrencyCode.DKK, | ||
] | ||
|
||
|
||
@pytest.mark.live | ||
def test_df(df: pd.DataFrame, expected_currencies: list[CurrencyCode]) -> None: | ||
_test_df_sanity(df, expected_currencies) |
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