Skip to content

Commit

Permalink
Correct cannot collect test class warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Gábor Lipták <[email protected]>
  • Loading branch information
gliptak committed Jun 16, 2024
1 parent 4e4450a commit 3fbd8fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit 3fbd8fc

Please sign in to comment.