Skip to content

Commit f3963b9

Browse files
WillAydproost
authored andcommitted
Parametrize JSON tests (pandas-dev#27838)
* Parametrized non unique column test * Parametrized non-unique index tests * Removed skip for values test * Blackify * Parametrized doubled_encoded_labels test * Parametrized 'biggie' test case * Parametrized basic test * simplified test names * int case * Parametrized categorical case * Parametrized empty test case * parametrized ts data * Parametrized mixed case * Removed unnecessary test * Blackify * moved position of dtype parametrization * Parametrized bad_data_raises test * broke off infinity test * parametrized precision test * parametrized infer words * Renamed df_orient to just orient for reuse * parametrized basic series test * Added default orient test * Parametrized empty series test * Parametrized series timeseries test * parametrized series numeric case * Removed unnecessary series roundtrip test * Parametrized date unit test * Parametrized utc test * parametrized ts_range_utc test * Removed py2 compat code * blackify * Parametrized infinity test * parametrized missing data test * Blackify * flake fixup * Comment cleanup * Fix up astypes * Py35 compat * 32 bit compat * PY35 compat * lint fixup * Revert Py35 compat * 32 bit compat restriction * PY35 columns orient sorting * Added missing import * More Py35 compat * Final Py35 compat (hopefully) * Final Py35 compat (hopefully) redux * Windows int fix * Invoke func * 32 bit compat fix * more 32 bit compat * Excepted split from int dtype check * Removed windows compat * Windows test compat * Fixed conftest docstring * Added TODO * Reverted changes to test_frame_from_json_to_json * Removed unused import * Added comment for nanosecond -> ms conversion * Removed duplicate StringIO usage * Used more standard approach for various expected outputs * removed numeric underscores
1 parent caea50e commit f3963b9

File tree

2 files changed

+253
-278
lines changed

2 files changed

+253
-278
lines changed

pandas/tests/io/json/conftest.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pytest
2+
3+
4+
@pytest.fixture(params=["split", "records", "index", "columns", "values"])
5+
def orient(request):
6+
"""
7+
Fixture for orients excluding the table format.
8+
"""
9+
return request.param

0 commit comments

Comments
 (0)