Skip to content

Commit

Permalink
use the testing helper from our own module now
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Nov 14, 2024
1 parent 3d27744 commit aa85414
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
from tfs import read_tfs
from tfs.collection import Tfs, TfsCollection
from tfs.frame import TfsDataFrame
from tfs.testing import assert_tfs_frame_equal

from .conftest import INPUTS_DIR, assert_tfs_frame_equal
from .conftest import INPUTS_DIR


class CollectionTest(TfsCollection):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
import pytest

from tfs.reader import read_headers, read_tfs
from tfs.testing import assert_tfs_frame_equal
from tfs.writer import write_tfs

from .conftest import INPUTS_DIR, assert_tfs_frame_equal
from .conftest import INPUTS_DIR

SUPPORTED_EXTENSIONS: tuple[str] = ["gz", "bz2", "zip", "xz", "zst", "tar", "tar.gz"] # through pandas

Expand Down
3 changes: 1 addition & 2 deletions tests/test_hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import pytest

from tfs import TfsDataFrame, read_hdf, read_tfs, write_hdf

from .conftest import assert_tfs_frame_equal
from tfs.testing import assert_tfs_frame_equal


class TestHDF:
Expand Down
3 changes: 2 additions & 1 deletion tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
from tfs.constants import HEADER
from tfs.errors import AbsentColumnNameError, AbsentColumnTypeError, UnknownTypeIdentifierError
from tfs.reader import read_headers, read_tfs
from tfs.testing import assert_tfs_frame_equal
from tfs.writer import write_tfs

from .conftest import INPUTS_DIR, assert_tfs_frame_equal
from .conftest import INPUTS_DIR


class TestRead:
Expand Down
3 changes: 1 addition & 2 deletions tests/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
NonStringColumnNameError,
SpaceinColumnNameError,
)

from .conftest import assert_tfs_frame_equal
from tfs.testing import assert_tfs_frame_equal


class TestWrites:
Expand Down

0 comments on commit aa85414

Please sign in to comment.