Skip to content

Commit 3fbd8fc

Browse files
committed
Correct cannot collect test class warnings
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
1 parent 4e4450a commit 3fbd8fc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

dataprofiler/tests/profilers/test_histogram_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def mock_sqrt_return_nan(profile):
3333

3434

3535
class TestColumn(NumericStatsMixin):
36+
__test__ = False
37+
3638
def __init__(self):
3739
NumericStatsMixin.__init__(self)
3840
self.times = defaultdict(float)

dataprofiler/tests/profilers/test_numeric_stats_mixin_profile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020

2121
class TestColumn(NumericStatsMixin):
22+
__test__ = False
23+
2224
def __init__(self):
2325
NumericStatsMixin.__init__(self)
2426
self.match_count = 0
@@ -32,6 +34,7 @@ def _filter_properties_w_options(self, calculations, options):
3234

3335

3436
class TestColumnWProps(TestColumn):
37+
__test__ = False
3538
# overrides the property func
3639
median = None
3740
mode = None
@@ -52,7 +55,6 @@ class TestNumericStatsMixin(unittest.TestCase):
5255
create=True,
5356
)
5457
def test_base(self):
55-
5658
# validate requires NumericalOptions
5759
with self.assertRaisesRegex(
5860
ValueError,
@@ -345,7 +347,6 @@ def test_timeit(self):
345347

346348
time_array = [float(i) for i in range(24, 0, -1)]
347349
with mock.patch("time.time", side_effect=lambda: time_array.pop()):
348-
349350
# Validate that the times dictionary is empty
350351
self.assertEqual(defaultdict(float), num_profiler.times)
351352

0 commit comments

Comments
 (0)