Files
OpenBB/noxfile.py
Henrique Joaquim 3e8043f97a obbject tests (#5558)
* obbject tests

* ruff

* fix dev_install

* fix unittests

* black on nox

* black on nox

* nox

* fix fetcher test so it can compare dates

* fix intrinio tests

* ruff
2023-10-13 11:39:33 +01:00

21 lines
515 B
Python

import nox
test_locations = [
"openbb_platform/tests",
"openbb_platform/platform",
"openbb_platform/providers",
]
@nox.session(python=["3.8", "3.9", "3.10", "3.11"])
def tests(session):
session.install("poetry", "toml")
session.run(
"python", "./openbb_platform/dev_install.py", "-e", "all", external=True
)
session.install("pytest")
session.install("pytest-cov")
session.run(
"pytest", *test_locations, "--cov=openbb_platform/", "-m", "not integration"
)