Skip to content

Commit

Permalink
SNOW-1440016 Make sure all modin doctests are covered in CI (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-azhan authored May 21, 2024
1 parent afa4433 commit a2d33a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def pytest_collection_modifyitems(items) -> None:
"""Applies tags to tests based on folders that they are in."""
top_test_dir = Path(__file__).parent
top_doctest_dir = top_test_dir.parent.joinpath("src/snowflake/snowpark")
modin_doctest_dir = top_doctest_dir.joinpath("modin/pandas")
for item in items:
item_path = Path(str(item.fspath)).parent
try:
Expand All @@ -49,7 +48,7 @@ def pytest_collection_modifyitems(items) -> None:
# we raise an exception for all other dirs that are passed in
if item_path == top_doctest_dir:
item.add_marker("doctest")
elif str(item_path).startswith(str(modin_doctest_dir)):
elif "modin" in str(item_path):
if not is_excluded_frontend_file(item.fspath):
item.add_marker("doctest")
item.add_marker(pytest.mark.usefixtures("add_doctest_imports"))
Expand Down

0 comments on commit a2d33a0

Please sign in to comment.