Skip to content

Commit

Permalink
Add folder level
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Apr 25, 2024
1 parent 22414b5 commit 134b160
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions sdv/io/local/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""Local I/O module."""

from sdv.io.local.local import BaseLocalHandler, CSVHandler

__all__ = (
'BaseLocalHandler',
'CSVHandler'
)
File renamed without changes.
Empty file.
File renamed without changes.
Empty file added tests/unit/io/local/__init__.py
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pandas as pd
import pytest

from sdv.io.local import CSVHandler
from sdv.io.local.local import CSVHandler
from sdv.metadata.multi_table import MultiTableMetadata


Expand Down Expand Up @@ -41,7 +41,7 @@ def test___init___error_encoding(self):
with pytest.raises(ValueError, match=error_msg):
CSVHandler(sep=';', encoding='sdvutf-8', decimal=',', float_format='%.2f')

@patch('sdv.io.local.Path.glob')
@patch('sdv.io.local.local.Path.glob')
@patch('pandas.read_csv')
def test_read(self, mock_read_csv, mock_glob):
"""Test the read method of CSVHandler class with a folder."""
Expand Down

0 comments on commit 134b160

Please sign in to comment.