Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip Nasdaq Data Link test if token not provided #199

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

manoelmarques
Copy link
Contributor

Summary

Closes #198

The Nasdaq Data Link tests will be skipped if token is not provided in an env.variable. Since a token is personal and not provided in the CI, the CI will always skip those tests. In case a token is provided, any error will fail the unit test.

For Wikipedia provider a token is not mandatory. In that case, any error will fail unit test unless it is a daily data usage exceeded in which case it will be skipped.

Details and comments

@coveralls
Copy link

coveralls commented Aug 29, 2022

Pull Request Test Coverage Report for Build 2949884543

  • 0 of 6 (0.0%) changed or added relevant lines in 2 files are covered.
  • 56 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-7.3%) to 75.708%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit_finance/data_providers/exchange_data_provider.py 0 3 0.0%
qiskit_finance/data_providers/wikipedia_data_provider.py 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
qiskit_finance/data_providers/data_on_demand_provider.py 26 29.79%
qiskit_finance/data_providers/exchange_data_provider.py 30 17.74%
Totals Coverage Status
Change from base Build 2869484900: -7.3%
Covered Lines: 642
Relevant Lines: 848

💛 - Coveralls

@manoelmarques manoelmarques added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Aug 29, 2022
@manoelmarques manoelmarques merged commit 71c190c into qiskit-community:main Aug 29, 2022
@manoelmarques manoelmarques deleted the nasdaq branch August 29, 2022 21:04
mergify bot pushed a commit that referenced this pull request Aug 29, 2022
(cherry picked from commit 71c190c)

# Conflicts:
#	qiskit_finance/data_providers/exchange_data_provider.py
#	qiskit_finance/data_providers/wikipedia_data_provider.py
#	test/circuit/test_european_call_delta_objective.py
#	test/circuit/test_european_call_pricing_objective.py
#	test/circuit/test_fixed_income_pricing_objective.py
#	test/data_providers/test_data_providers.py
manoelmarques added a commit that referenced this pull request Aug 29, 2022
mergify bot added a commit that referenced this pull request Aug 29, 2022
* Skip Nasdaq Data Link test if token not provided (#199)

(cherry picked from commit 71c190c)

* fix spaces

Co-authored-by: Manoel Marques <manoelmrqs@gmail.com>
Co-authored-by: Manoel Marques <manoel.marques@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some tests are skipped because of nasdaq data link errors
3 participants