velofy/tests/test_init_r.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
499 B
Python
Raw Permalink Normal View History

"""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.
"""
2026-11-30 22:28:12 +01:00
from velofy import init_r # noqa:PLC0415
assert init_r is not None