Skip to content

Commit

Permalink
Bears-R-Us#3463 deprecate summarization_test.py (Bears-R-Us#3591)
Browse files Browse the repository at this point in the history
Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
  • Loading branch information
ajpotts and ajpotts authored Jul 26, 2024
1 parent bd2a5a9 commit 30e33f2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
39 changes: 39 additions & 0 deletions PROTO_tests/tests/summarization_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import numpy as np
import pytest

import arkouda as ak


"""
Encapsulates unit tests for the pdarrayclass module that provide
summarized values via reduction methods
"""


class TestSummarization:

@classmethod
def setup_class(cls):
cls.na = np.linspace(1, 10, 10)
cls.pda = ak.array(cls.na)

def testStd(self):
assert self.na.std() == self.pda.std()

def testMin(self):
assert self.na.min() == self.pda.min()

def testMax(self):
assert self.na.max() == self.pda.max()

def testMean(self):
assert self.na.mean() == self.pda.mean()

def testVar(self):
assert self.na.var() == self.pda.var()

def testAny(self):
assert self.na.any() == self.pda.any()

def testAll(self):
assert self.na.all() == self.pda.all()
1 change: 0 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ testpaths =
tests/segarray_test.py
tests/sort_test.py
tests/string_test.py
tests/summarization_test.py
tests/symbol_table_test.py
tests/util_test.py
tests/where_test.py
Expand Down
File renamed without changes.

0 comments on commit 30e33f2

Please sign in to comment.