velofy/tests/test_init_r.py
2026-11-30 22:28:12 +01:00

19 lines
499 B
Python

"""Verify that the R packages are installed correctly."""
import pytest
@pytest.mark.r
def test_r_packages_installed():
"""Import the `velofy.init_r` module.
Doing this raises a `PackageNotInstalledError` if the
mentioned R packages are not importable.
They must be installed externally. That happens either
in the "research/r_dependencies.ipynb" notebook or
in the GitHub Actions CI.
"""
from velofy import init_r # noqa:PLC0415
assert init_r is not None