Skip to content

Commit

Permalink
Remove test_doc_link() test
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Feb 5, 2025
1 parent 63a50f0 commit c616e14
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/python/test_with_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,16 +1563,3 @@ def _assert_has_xgbmodel_tags(tags):
except AttributeError as err:
# only the exact error we expected to be raised should be raised
assert bool(re.search(r"__sklearn_tags__.* should not be called", str(err)))


def test_doc_link() -> None:
for est in [
xgb.XGBRegressor(),
xgb.XGBClassifier(),
xgb.XGBRanker(),
xgb.XGBRFRegressor(),
xgb.XGBRFClassifier(),
]:
name = est.__class__.__name__
link = est._get_doc_link()
assert f"xgboost.{name}" in link

0 comments on commit c616e14

Please sign in to comment.