Skip to content

Commit 0abfc47

Browse files
committed
test: tweak unit test cases and doctest examples for PRN search API
1 parent 097149c commit 0abfc47

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/financial_services_register_api/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,9 +1350,9 @@ def search_prn(self, fund_name: str) -> str | list[dict[str, str]]:
13501350
--------
13511351
>>> import os
13521352
>>> client = FinancialServicesRegisterApiClient(os.environ['API_USERNAME'], os.environ['API_KEY'])
1353-
>>> client.search_prn('Northern Trust High Dividend ESG World Equity Feeder Fund')
1354-
'913937'
1355-
>>> res = client.search_prn('Northern Trust')
1353+
>>> res = client.search_prn('jupiter asia pacific income fund')
1354+
'104429'
1355+
>>> res = client.search_prn('northern trust')
13561356
>>> assert isinstance(res, list)
13571357
>>> assert all(isinstance(rec, dict) for rec in res)
13581358
>>> client.search_prn('nonexistent fund')

tests/units/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ def test_financial_services_register_api_client___search_prn__correctly_and_adeq
904904
assert isinstance(recv_prn, str)
905905
assert recv_prn
906906

907-
recv_prn = test_client.search_prn('northern trust high dividend esg world equity feeder')
907+
recv_prn = test_client.search_prn('northern trust developed real estate index')
908908
assert isinstance(recv_prn, str)
909909
assert recv_prn
910910

0 commit comments

Comments
 (0)