Skip to content

Commit cebde95

Browse files
committed
others
1 parent 2d80af3 commit cebde95

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

tests/compliance/json/conftest.py

-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import numpy as np
2020
import pandas as pd
21-
import pandas._testing as tm
2221
import pytest
2322

2423
from db_dtypes import JSONArray, JSONDtype
@@ -79,13 +78,6 @@ def data_missing():
7978
return JSONArray._from_sequence([None, {"a": 10}])
8079

8180

82-
@pytest.fixture
83-
def data_for_sorting():
84-
return JSONArray._from_sequence(
85-
[json.dumps({"b": 1}), json.dumps({"c": 4}), json.dumps({"a": 2, "c": 3})]
86-
)
87-
88-
8981
@pytest.fixture
9082
def data_missing_for_sorting():
9183
return JSONArray._from_sequence([json.dumps({"b": 1}), None, json.dumps({"a": 4})])

tests/compliance/json/test_json_compliance.py

+16
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,22 @@ def test_factorize(self, data_for_grouping):
174174
def test_factorize_equivalence(self, data_for_grouping):
175175
super().test_factorize_equivalence(data_for_grouping)
176176

177+
@pytest.mark.skip(reason="BigQuery does not allow sort by a JSON-type column.")
178+
def test_argsort(self, data_for_sorting):
179+
super().test_argsort(data_for_sorting)
180+
181+
@pytest.mark.skip(reason="BigQuery does not allow sort by a JSON-type column.")
182+
def test_argmin_argmax(self, data_for_sorting):
183+
super().test_argmin_argmax(data_for_sorting)
184+
185+
@pytest.mark.skip(reason="BigQuery does not allow sort by a JSON-type column.")
186+
def test_sort_values(self, data_for_sorting):
187+
super().test_sort_values(data_for_sorting)
188+
189+
@pytest.mark.skip(reason="BigQuery does not allow sort by a JSON-type column.")
190+
def test_sort_values_frame(self, data_for_sorting):
191+
super().test_sort_values_frame(data_for_sorting)
192+
177193

178194
class TestJSONArrayMissing(base.BaseMissingTests):
179195
@pytest.mark.xfail(reason="Setting a dict as a scalar")

0 commit comments

Comments
 (0)