-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alt & mutual fund unit test & cleanup (#4540)
* Alternative & Mutual Funds unit tests & cleanup * ruff * add dependency * general linting updates * Update reqs * pytest-recorder updates * pre-commit config * checkout dependencies from develop * dependency update * dependency update * pytest-recorder updates --------- Co-authored-by: James Maslek <[email protected]> Co-authored-by: montezdesousa <[email protected]>
- Loading branch information
1 parent
16aaa26
commit bd0299b
Showing
10 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...openbb_terminal/alternative/oss/record/object_hash/test_runa_model/test_make_request.json
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 @@ | ||
[] |
51 changes: 51 additions & 0 deletions
51
tests/openbb_terminal/mutual_funds/record/http/test_mstrapy_model/test_search_funds.yaml
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,51 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
user-agent: | ||
- Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:22.0) Gecko/20130328 Firefox/22.0 | ||
method: GET | ||
uri: https://tools.morningstar.co.uk/api/rest.svc/klr5zyak8x/security/screener?page=1&pageSize=1&sortOrder=LegalName+asc&outputType=json&version=1&universeIds=FOUSA%24%24ALL¤cyId=EUR&securityDataPoints=SecId%7CTenforeId%7CLegalName&term=Vanguard | ||
response: | ||
body: | ||
string: '{"total": 306,"page": 1,"pageSize": 1,"rows": [{"SecId": "FOUSA00L8W","TenforeId": | ||
"52.8.VFIAX","LegalName": "Vanguard 500 Index Fund Admiral Shares"}] }' | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type,Accept,Origin | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Cache-Control: | ||
- private | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '153' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 17 Mar 2023 11:28:45 GMT | ||
Set-Cookie: | ||
- ASP.NET_SessionId=c0wf1yawzkaezvv4mex0lv40; path=/; secure; HttpOnly; SameSite=None | ||
Strict-Transport-Security: | ||
- max-age=7200; includeSubDomains | ||
Via: | ||
- 1.1 d1059a03249ee23f5bc6527edaec7ed2.cloudfront.net (CloudFront) | ||
X-Amz-Cf-Id: | ||
- uvNVHZ4Yws8OjokF7RztJDGlIdzhSe3JYFrSgjeKNHIUFlMpFSeqXQ== | ||
X-Amz-Cf-Pop: | ||
- BUD50-C1 | ||
X-Cache: | ||
- Miss from cloudfront | ||
p3p: | ||
- CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM" | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
53 changes: 53 additions & 0 deletions
53
..._funds/record/http/test_mstrapy_model/test_search_funds[NYSE-US-1-expected_columns2].yaml
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,53 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
user-agent: | ||
- Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, | ||
like Gecko) Chrome/4.0.201.1 Safari/532.0 | ||
method: GET | ||
uri: https://tools.morningstar.co.uk/api/rest.svc/klr5zyak8x/security/screener?page=1&pageSize=1&sortOrder=LegalName+asc&outputType=json&version=1&universeIds=FOUSA%24%24ALL¤cyId=EUR&securityDataPoints=SecId%7CTenforeId%7CLegalName&term=NYSE | ||
response: | ||
body: | ||
string: '{"total": 4,"page": 1,"pageSize": 1,"rows": [{"SecId": "FOUSA00H4D","TenforeId": | ||
"52.8.NWJCX","LegalName": "Nationwide NYSE Arca Tech 100 Index Fund Class | ||
A"}] }' | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type,Accept,Origin | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Cache-Control: | ||
- private | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '161' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 17 Mar 2023 12:06:08 GMT | ||
Set-Cookie: | ||
- ASP.NET_SessionId=llbvre043eyr3usw0yf0c22v; path=/; secure; HttpOnly; SameSite=None | ||
Strict-Transport-Security: | ||
- max-age=7200; includeSubDomains | ||
Via: | ||
- 1.1 412b915bb2572a86aaa8bdf21eb381fc.cloudfront.net (CloudFront) | ||
X-Amz-Cf-Id: | ||
- lMbLAX7_XMYkfsbWXHhZJgc8L_n8JaO-CBGDIZkOFHmLXMWUn4iP2Q== | ||
X-Amz-Cf-Pop: | ||
- VIE50-C2 | ||
X-Cache: | ||
- Miss from cloudfront | ||
p3p: | ||
- CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM" | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
51 changes: 51 additions & 0 deletions
51
...ecord/http/test_mstrapy_model/test_search_funds[NYSEARCA:VUG-US-1-expected_columns2].yaml
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,51 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
user-agent: | ||
- Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ko; rv:1.9.1b2) Gecko/20081201 | ||
Firefox/3.1b2 | ||
method: GET | ||
uri: https://tools.morningstar.co.uk/api/rest.svc/klr5zyak8x/security/screener?page=1&pageSize=1&sortOrder=LegalName+asc&outputType=json&version=1&universeIds=FOUSA%24%24ALL¤cyId=EUR&securityDataPoints=SecId%7CTenforeId%7CLegalName&term=NYSEARCA%3AVUG | ||
response: | ||
body: | ||
string: '{"total": 0,"page": 1,"pageSize": 1,"rows": [] }' | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type,Accept,Origin | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Cache-Control: | ||
- private | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '48' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 17 Mar 2023 12:05:52 GMT | ||
Set-Cookie: | ||
- ASP.NET_SessionId=rbfdjleve0heyd14hez3iin3; path=/; secure; HttpOnly; SameSite=None | ||
Strict-Transport-Security: | ||
- max-age=7200; includeSubDomains | ||
Via: | ||
- 1.1 218366faeb88f6d265d2589e37ea2dac.cloudfront.net (CloudFront) | ||
X-Amz-Cf-Id: | ||
- wsMF6hP2IvXzVL2rbct7DPpWbQPUDHtoouMtmnNUUV_NLyVlTEF2Wg== | ||
X-Amz-Cf-Pop: | ||
- VIE50-C2 | ||
X-Cache: | ||
- Miss from cloudfront | ||
p3p: | ||
- CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM" | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
53 changes: 53 additions & 0 deletions
53
...l_funds/record/http/test_mstrapy_model/test_search_funds[UNH-US-1-expected_columns1].yaml
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,53 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
user-agent: | ||
- Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ko; rv:1.9.1b2) Gecko/20081201 | ||
Firefox/3.1b2 | ||
method: GET | ||
uri: https://tools.morningstar.co.uk/api/rest.svc/klr5zyak8x/security/screener?page=1&pageSize=1&sortOrder=LegalName+asc&outputType=json&version=1&universeIds=FOUSA%24%24ALL¤cyId=EUR&securityDataPoints=SecId%7CTenforeId%7CLegalName&term=UNH | ||
response: | ||
body: | ||
string: '{"total": 2,"page": 1,"pageSize": 1,"rows": [{"SecId": "F000014BDG","TenforeId": | ||
"52.8.FMIFX","LegalName": "FMI International Fund II - Currency Unhedged Institutional | ||
Class"}] }' | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type,Accept,Origin | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Cache-Control: | ||
- private | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '178' | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 17 Mar 2023 12:06:08 GMT | ||
Set-Cookie: | ||
- ASP.NET_SessionId=aneql2wriafvglr1nbqhsou3; path=/; secure; HttpOnly; SameSite=None | ||
Strict-Transport-Security: | ||
- max-age=7200; includeSubDomains | ||
Via: | ||
- 1.1 1a276be771f01064831eea4851319c28.cloudfront.net (CloudFront) | ||
X-Amz-Cf-Id: | ||
- kSOAS498fOIjv1lr5DAfSR-NyfmRAUvjI6tu9UpuJFT4BqLLxyQFVg== | ||
X-Amz-Cf-Pop: | ||
- VIE50-C2 | ||
X-Cache: | ||
- Miss from cloudfront | ||
p3p: | ||
- CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM" | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
1 change: 1 addition & 0 deletions
1
...rminal/mutual_funds/record/object_hash/test_avanza_model/test_get_data[LU0476876163].json
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 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...openbb_terminal/mutual_funds/record/object_hash/test_mstrapy_model/test_search_funds.json
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 @@ | ||
["fa67c5d959d916197202560793a0db235eced58141b0b4c244066e7f8b586359"] |
1 change: 1 addition & 0 deletions
1
...record/object_hash/test_mstrapy_model/test_search_funds[NYSE-US-1-expected_columns2].json
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 @@ | ||
["3a75581de2c48ccceb4c6133ee30daf2827776a3777f094d7fa012416b9ab49d"] |
1 change: 1 addition & 0 deletions
1
...bject_hash/test_mstrapy_model/test_search_funds[NYSEARCA:VUG-US-1-expected_columns2].json
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 @@ | ||
["44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"] |
1 change: 1 addition & 0 deletions
1
.../record/object_hash/test_mstrapy_model/test_search_funds[UNH-US-1-expected_columns1].json
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 @@ | ||
["1a543217a3a55894dbc9ec6f100711cccad6303589c6ca708d813db6ae8a5aec"] |