Skip to content

test: add final dbdate compliance tests and sort #89

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

Merged
merged 37 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b48ee6d
fix: address failing compliance tests in DateArray and TimeArray
tswast Jan 27, 2022
90e1573
fix min/max/median for 2D arrays
tswast Jan 27, 2022
47100f5
fixes except for null contains
tswast Feb 1, 2022
cece518
actually use NaT as 'advertised'
tswast Feb 2, 2022
cc5b178
fix!: use `pandas.NaT` for missing values in dbdate and dbtime dtypes
tswast Jan 27, 2022
cd84754
Merge branch 'issue28-NaT' into issue28-NDArrayBacked2DTests
tswast Feb 2, 2022
f807c6f
Merge remote-tracking branch 'upstream/main' into issue28-NDArrayBack…
tswast Feb 2, 2022
cc713a8
more progress towards compliance
tswast Mar 8, 2022
164101a
address errors in TestMethods
tswast Mar 9, 2022
1f06c78
Merge remote-tracking branch 'upstream/main' into issue28-NDArrayBack…
tswast Mar 16, 2022
d9edc06
move tests
tswast Mar 16, 2022
cdb0d0f
add prerelease deps
tswast Mar 16, 2022
804cee2
fix: address failing tests with pandas 1.5.0
tswast Jan 27, 2022
3e088ac
fix owlbot config
tswast Mar 16, 2022
6db3c4f
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 16, 2022
10c6621
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 16, 2022
83451c7
Merge branch 'issue81-pandas-1.5.0-unit-tests' of https://github.com/…
gcf-owl-bot[bot] Mar 16, 2022
d2e6931
document why microsecond precision is used
tswast Mar 16, 2022
6023008
use correct units
tswast Mar 16, 2022
d85c356
add box_func tests
tswast Mar 16, 2022
1f17580
typo
tswast Mar 16, 2022
e54050e
Merge branch 'issue81-pandas-1.5.0-unit-tests' into issue28-NDArrayBa…
tswast Mar 17, 2022
432bce1
Merge branch 'main' into issue28-NDArrayBacked2DTests
tswast Mar 18, 2022
2dfe9b4
fix: avoid TypeError when using sorted search
tswast Mar 18, 2022
8ba12f6
add unit tests
tswast Mar 18, 2022
f3a326c
Merge remote-tracking branch 'upstream/issue28-NDArrayBacked2DTests' …
tswast Mar 18, 2022
f05364b
Merge remote-tracking branch 'upstream/issue28-NDArrayBacked2DTests' …
tswast Mar 21, 2022
ae22495
fix: dbdate and dbtime support set item
tswast Mar 21, 2022
0a55117
Merge branch 'issue28-set-item' into issue28-more-compliance-tests
tswast Mar 21, 2022
ba48206
add TestMethods
tswast Mar 21, 2022
9801e8b
Merge remote-tracking branch 'upstream/main' into issue28-more-compli…
tswast Mar 21, 2022
f759ce2
fix: allow comparison with scalar values
tswast Mar 21, 2022
af8aebe
correct behavior for comparison with different types and shapes
tswast Mar 22, 2022
597841e
use same dtype in shape comparison tests
tswast Mar 23, 2022
009454d
test: add final dbdate compliance tests and sort
tswast Mar 23, 2022
c3d46c4
Merge remote-tracking branch 'upstream/main' into issue28-index-compl…
tswast Mar 24, 2022
0d3b7bc
remove redundant index tests
tswast Mar 24, 2022
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
43 changes: 25 additions & 18 deletions tests/compliance/date/test_date_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,47 @@
import db_dtypes


class TestDtype(base.BaseDtypeTests):
# TODO(https://github.com/googleapis/python-db-dtypes-pandas/issues/87): Add
# compliance tests for arithmetic operations.

# TODO(https://github.com/googleapis/python-db-dtypes-pandas/issues/78): Add
# compliance tests for reduction operations.


class TestComparisonOps(base.BaseComparisonOpsTests):
pass


class TestInterface(base.BaseInterfaceTests):
class TestCasting(base.BaseCastingTests):
pass


class TestConstructors(base.BaseConstructorsTests):
pass


class TestReshaping(base.BaseReshapingTests):
class TestDtype(base.BaseDtypeTests):
pass


class TestGetitem(base.BaseGetitemTests):
pass


class TestMissing(base.BaseMissingTests):
class TestGroupby(base.BaseGroupbyTests):
pass


# TODO(https://github.com/googleapis/python-db-dtypes-pandas/issues/78): Add
# compliance tests for reduction operations.
class TestIndex(base.BaseIndexTests):
pass


class TestInterface(base.BaseInterfaceTests):
pass


class TestMissing(base.BaseMissingTests):
pass


class TestMethods(base.BaseMethodsTests):
Expand All @@ -76,25 +91,17 @@ def test_value_counts(self, all_data, dropna):
self.assert_series_equal(result, expected)


class TestCasting(base.BaseCastingTests):
pass


class TestGroupby(base.BaseGroupbyTests):
pass


class TestSetitem(base.BaseSetitemTests):
class TestParsing(base.BaseParsingTests):
pass


class TestPrinting(base.BasePrintingTests):
pass


# TODO(https://github.com/googleapis/python-db-dtypes-pandas/issues/78): Add
# compliance tests for arithmetic operations.
class TestReshaping(base.BaseReshapingTests):
pass


class TestComparisonOps(base.BaseComparisonOpsTests):
class TestSetitem(base.BaseSetitemTests):
pass
4 changes: 0 additions & 4 deletions tests/compliance/date/test_date_compliance_1_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@

class Test2DCompat(base.NDArrayBacked2DTests):
pass


class TestIndex(base.BaseIndexTests):
pass