Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create skip_if_no helper function to skip tests when missing a package (
#2883) 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. --------- Co-authored-by: Dongdong Tian <[email protected]>
- Loading branch information