Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct cannot collect test class warnings #1149

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dataprofiler/tests/profilers/test_histogram_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def mock_sqrt_return_nan(profile):


class TestColumn(NumericStatsMixin):
__test__ = False

def __init__(self):
NumericStatsMixin.__init__(self)
self.times = defaultdict(float)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@


class TestColumn(NumericStatsMixin):
__test__ = False

def __init__(self):
NumericStatsMixin.__init__(self)
self.match_count = 0
Expand All @@ -32,6 +34,7 @@ def _filter_properties_w_options(self, calculations, options):


class TestColumnWProps(TestColumn):
__test__ = False
# overrides the property func
median = None
mode = None
Expand All @@ -52,7 +55,6 @@ class TestNumericStatsMixin(unittest.TestCase):
create=True,
)
def test_base(self):

# validate requires NumericalOptions
with self.assertRaisesRegex(
ValueError,
Expand Down Expand Up @@ -345,7 +347,6 @@ def test_timeit(self):

time_array = [float(i) for i in range(24, 0, -1)]
with mock.patch("time.time", side_effect=lambda: time_array.pop()):

# Validate that the times dictionary is empty
self.assertEqual(defaultdict(float), num_profiler.times)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
h5py>=2.10.0
wheel>=0.33.1
numpy>=1.22.0
numpy>=1.22.0,<2.0.0
pandas>=1.1.2
python-dateutil>=2.7.5
pytz>=2020.1
Expand Down
Loading