Skip to content

Parthea enable gbq unit tests #1

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ matrix:
- USE_CACHE=true

before_install:

- openssl aes-256-cbc -K $encrypted_1d9d7b1f171b_key -iv $encrypted_1d9d7b1f171b_iv -in ci\travis_gbq.json.enc -out ci\travis_gbq.json -d
- echo "before_install"
- echo $VIRTUAL_ENV
- export PATH="$HOME/miniconda/bin:$PATH"
Expand Down
1 change: 1 addition & 0 deletions ci/requirements-2.7.pip
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ oauth2client==1.5.0
pathlib
backports.lzma
py
PyCrypto
Binary file added ci/travis_gbq.json.enc
Binary file not shown.
12 changes: 7 additions & 5 deletions pandas/io/tests/json/test_ujson.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,20 +1321,22 @@ def testSeries(self):
numpy=True))
outp = Series(**dec)

exp_np = Series(np.array([10, 20, 30, 40, 50, 60]))
exp_pd = Series([10, 20, 30, 40, 50, 60])
outp = Series(ujson.decode(ujson.encode(s, orient="records"),
numpy=True))
exp = Series([10, 20, 30, 40, 50, 60])
tm.assert_series_equal(outp, exp)
tm.assert_series_equal(outp, exp_np)

outp = Series(ujson.decode(ujson.encode(s, orient="records")))
tm.assert_series_equal(outp, exp)
exp = Series([10, 20, 30, 40, 50, 60])
tm.assert_series_equal(outp, exp_pd)

outp = Series(ujson.decode(ujson.encode(s, orient="values"),
numpy=True))
tm.assert_series_equal(outp, exp)
tm.assert_series_equal(outp, exp_np)

outp = Series(ujson.decode(ujson.encode(s, orient="values")))
tm.assert_series_equal(outp, exp)
tm.assert_series_equal(outp, exp_pd)

outp = Series(ujson.decode(ujson.encode(
s, orient="index"))).sort_values()
Expand Down
Loading