Skip to content

Commit

Permalink
Move marker to streaming module level
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Jan 24, 2024
1 parent 907ceb0 commit f6f46c0
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 22 deletions.
3 changes: 3 additions & 0 deletions py-polars/tests/unit/streaming/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pytest

pytestmark = pytest.mark.xdist_group("streaming")
2 changes: 0 additions & 2 deletions py-polars/tests/unit/streaming/test_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
if TYPE_CHECKING:
from polars.type_aliases import JoinStrategy

pytestmark = pytest.mark.xdist_group("streaming")


def test_streaming_categoricals_5921() -> None:
with pl.StringCache():
Expand Down
4 changes: 0 additions & 4 deletions py-polars/tests/unit/streaming/test_streaming_categoricals.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import pytest

import polars as pl

pytestmark = pytest.mark.xdist_group("streaming")


def test_streaming_nested_categorical() -> None:
assert (
Expand Down
2 changes: 0 additions & 2 deletions py-polars/tests/unit/streaming/test_streaming_cse.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import polars as pl
from polars.testing import assert_frame_equal

pytestmark = pytest.mark.xdist_group("streaming")


def test_cse_expr_selection_streaming(monkeypatch: Any, capfd: Any) -> None:
monkeypatch.setenv("POLARS_VERBOSE", "1")
Expand Down
2 changes: 0 additions & 2 deletions py-polars/tests/unit/streaming/test_streaming_group_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import polars as pl
from polars.testing import assert_frame_equal

pytestmark = pytest.mark.xdist_group("streaming")


@pytest.mark.slow()
def test_streaming_group_by_sorted_fast_path_nulls_10273() -> None:
Expand Down
7 changes: 2 additions & 5 deletions py-polars/tests/unit/streaming/test_streaming_io.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import unittest
from typing import TYPE_CHECKING
from unittest.mock import patch

import pytest

Expand All @@ -12,9 +12,6 @@
from pathlib import Path


pytestmark = pytest.mark.xdist_group("streaming")


@pytest.mark.write_disk()
def test_streaming_parquet_glob_5900(df: pl.DataFrame, tmp_path: Path) -> None:
tmp_path.mkdir(exist_ok=True)
Expand Down Expand Up @@ -122,7 +119,7 @@ def test_sink_csv_with_options() -> None:
passed into the rust-polars correctly.
"""
df = pl.LazyFrame({"dummy": ["abc"]})
with unittest.mock.patch.object(df, "_ldf") as ldf:
with patch.object(df, "_ldf") as ldf:
df.sink_csv(
"path",
include_bom=True,
Expand Down
3 changes: 0 additions & 3 deletions py-polars/tests/unit/streaming/test_streaming_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

import numpy as np
import pandas as pd
import pytest

import polars as pl
from polars.testing import assert_frame_equal

pytestmark = pytest.mark.xdist_group("streaming")


def test_streaming_joins() -> None:
n = 100
Expand Down
2 changes: 0 additions & 2 deletions py-polars/tests/unit/streaming/test_streaming_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
if TYPE_CHECKING:
from pathlib import Path

pytestmark = pytest.mark.xdist_group("streaming")


def assert_df_sorted_by(
df: pl.DataFrame,
Expand Down
2 changes: 0 additions & 2 deletions py-polars/tests/unit/streaming/test_streaming_unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
if TYPE_CHECKING:
from pathlib import Path

pytestmark = pytest.mark.xdist_group("streaming")


@pytest.mark.write_disk()
@pytest.mark.slow()
Expand Down

0 comments on commit f6f46c0

Please sign in to comment.