Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create skip_if_no helper function to skip tests when missing a package #2883

Merged
merged 2 commits into from
Dec 16, 2023

Commits on Dec 16, 2023

  1. Create skip_if_no helper function to skip tests when missing a package

    Add a helper testing function which returns a pytest.mark.skipif mark that will skip certain unit tests when a package is not installed. This is adapted from pandas' internal skip_if_no function at https://github.com/pandas-dev/pandas/blob/v2.1.4/pandas/util/_test_decorators.py#L121. Added a unit test to ensure that a correct pytest mark is returned.
    weiji14 committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    b4be7f1 View commit details
    Browse the repository at this point in the history
  2. Remove mention of version check

    Co-Authored-By: Dongdong Tian <[email protected]>
    weiji14 and seisman committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    fcf400e View commit details
    Browse the repository at this point in the history