mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-09 02:42:36 +00:00
* bump pytest and add pytest-subtests * add the test for dupes verification * ruff * Small cleanup * Revert "Small cleanup" This reverts commit4e935aafac. * getting @IgorWounds adjustments back withouth the static assets * resolving @the-praxs suggestions * better error messages and provider:field matching for better debugging * Test providers + cov * ignore nested test folders in codecov * install all * james wrong copy-paste * adding `-e` flag * Revert "adding `-e` flag" This reverts commitc0c33709a6. * correct wildcard * changing the way we obtain provider modules * adding init to test in the ci? * omitting package auto generated files --------- Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> Co-authored-by: James Maslek <jmaslek11@gmail.com> Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
12 lines
332 B
Python
12 lines
332 B
Python
import nox
|
|
|
|
test_locations = ["openbb_sdk/sdk/core/tests", "openbb_sdk/providers/tests"]
|
|
|
|
|
|
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
|
|
def tests(session):
|
|
session.install("./openbb_sdk[all]")
|
|
session.install("pytest")
|
|
session.install("pytest-cov")
|
|
session.run("pytest", *test_locations, "--cov=openbb_sdk/")
|