Skip to content

Commit

Permalink
Merge pull request #20 from JakubPluta/analyst-report
Browse files Browse the repository at this point in the history
Analyst report
  • Loading branch information
JakubPluta authored Mar 30, 2024
2 parents 781f0df + 65b82cf commit 04d4cdc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
source .venv/bin/activate
pip install requests
pytest --cov=./ --cov-report=xml -vv -ss
pytest --cov=./ --cov-report=xml -vv -ss -k "not test_functional"
echo "tests finished"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions etfpy/analytics/tabular_etf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def info(self):
"Niche",
"Strategy",
"Weighting Scheme",
"Analyst Report",
]
data = {
k[:-1] if k.endswith(":") else k: v
Expand Down
3 changes: 0 additions & 3 deletions etfpy/client/etf_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,4 @@ def _basic_info(self) -> Dict:
basic_information.update(self._trading_data())
basic_information.update(self._asset_categories())
basic_information.update(self._factset_classification())
if "Analyst Report" in basic_information:
basic_information.pop("Analyst Report")

return basic_information
1 change: 1 addition & 0 deletions tests/test_etf_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_basic_info():
"Niche": "Broad-based",
"Strategy": "Active",
"Weighting Scheme": "Proprietary",
"Analyst Report": "https://etfdb.com/advisor_reports/JEPY/",
}


Expand Down

0 comments on commit 04d4cdc

Please sign in to comment.