Skip to content

Commit

Permalink
Skip broken test cases
Browse files Browse the repository at this point in the history
Some of them shall be deprecated
  • Loading branch information
suminb committed May 16, 2022
1 parent 624bea2 commit 7f4d1d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions finance/providers/kofia.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def get_request_body(self, code, from_date, to_date):
to_date=to_date.strftime(DATE_FORMAT),
)

# TODO: An empty XML body is returned. This needs to be fixed.
def fetch_data(self, code, from_date, to_date):
"""Fetch data from the provider.
Expand Down
4 changes: 3 additions & 1 deletion tests/test___main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def test_import_sp500_records():
assert result.exit_code == 0


def test_import_fund(asset_sp500):
@pytest.mark.skip(reason="It appears Kofia API has been changed.")
def test_import_fund(asset_krw, asset_sp500):
runner = CliRunner()
result = runner.invoke(import_fund, ["KR5223941018", "2016-01-01", "2016-01-31"])
assert result.exit_code == 0
Expand All @@ -63,6 +64,7 @@ def test_import_non_existing_fund():
assert isinstance(result.exception, AssetNotFoundException)


@pytest.mark.skip(reason="Yahoo Finance provider is scheduled to be deprecated.")
def test_fetch_stock_values():
runner = CliRunner()
result = runner.invoke(
Expand Down
1 change: 1 addition & 0 deletions tests/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def test_kofia_get_request_body():
assert "20160603" in body


@pytest.mark.skip(reason="Kofia API needs to be investigated.")
def test_kofia_fetch_data():
provider = Kofia()
from_date, to_date = parse_date("2016-05-01"), parse_date("2016-05-30")
Expand Down

0 comments on commit 7f4d1d8

Please sign in to comment.