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
483 B
Python
Raw 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-28 02:01:12 +01:00
from velofy import init_r
assert init_r is not None